容器 user 默认值调整为 1000:1000(与服务器一致)

This commit is contained in:
yml2213
2026-08-04 09:37:21 +08:00
parent a3970bc5dc
commit 90f4fb255e
+1 -1
View File
@@ -33,7 +33,7 @@ services:
ALPINE_MIRROR: ${ALPINE_MIRROR:-https://mirrors.aliyun.com/alpine} ALPINE_MIRROR: ${ALPINE_MIRROR:-https://mirrors.aliyun.com/alpine}
image: affiliate-backend:latest image: affiliate-backend:latest
# 以宿主用户身份运行,日志文件归属正确(宿主机 logs 目录需预先 chown) # 以宿主用户身份运行,日志文件归属正确(宿主机 logs 目录需预先 chown)
user: "${HOST_UID:-1000}:${HOST_GID:-1001}" user: "${HOST_UID:-1000}:${HOST_GID:-1000}"
ports: ports:
- "8080:8080" - "8080:8080"
environment: environment: