容器 user 默认值调整为 1000:1000(与服务器一致)
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user