mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-11-23 01:34:03 +08:00
fix(core): configure etcd and MinIO permissions
This commit is contained in:
parent
1a2aaff0c2
commit
3307b40a51
@ -74,6 +74,7 @@ services:
|
||||
|
||||
etcd:
|
||||
image: "${ETCD_IMAGE}"
|
||||
user: root
|
||||
container_name: etcd
|
||||
ports:
|
||||
- "12379:2379"
|
||||
@ -110,7 +111,7 @@ services:
|
||||
[ "$$ETCD_ROOT_USER" = root ] && [ "$$ETCD_USERNAME" != root ] || fail "etcd requires ETCD_ROOT_USER=root and a separate application user."
|
||||
auth=yes
|
||||
fi
|
||||
[ -d /etcd-data ] && [ -w /etcd-data ] && [ -x /etcd-data ] || fail "/etcd-data must be writable and searchable by UID 1001."
|
||||
[ -d /etcd-data ] && [ -w /etcd-data ] && [ -x /etcd-data ] || fail "/etcd-data must be writable and searchable."
|
||||
(unset ETCD_ROOT_USER ETCD_ROOT_PASSWORD ETCD_USERNAME ETCD_PASSWORD; ETCD_DATA_DIR=/etcd-data exec etcd) &
|
||||
daemon=$$!
|
||||
cleanup() {
|
||||
@ -238,7 +239,7 @@ services:
|
||||
|
||||
minio:
|
||||
image: "${MINIO_IMAGE}"
|
||||
user: "0:0"
|
||||
user: root
|
||||
ports:
|
||||
- "10005:9000"
|
||||
- "19090:9090"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user