fix: env_file 使用绝对路径 /root/camtalk/.env,确保 CI 容器内 docker compose 正确解析 #161
@@ -18,7 +18,7 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
container_name: camtalk-backend
|
||||
env_file:
|
||||
- .env
|
||||
- /root/camtalk/.env
|
||||
environment:
|
||||
# 三级存储配置(敏感信息通过 env_file 注入)
|
||||
- CAMTALK_STORAGE_REDIS_ENABLED=${CAMTALK_STORAGE_REDIS_ENABLED:-true}
|
||||
@@ -38,7 +38,7 @@ services:
|
||||
image: docker.m.daocloud.io/library/postgres:15-alpine
|
||||
container_name: camtalk-postgres
|
||||
env_file:
|
||||
- .env
|
||||
- /root/camtalk/.env
|
||||
environment:
|
||||
POSTGRES_DB: camtalk
|
||||
volumes:
|
||||
@@ -57,7 +57,7 @@ services:
|
||||
image: docker.m.daocloud.io/library/redis:7-alpine
|
||||
container_name: camtalk-redis
|
||||
env_file:
|
||||
- .env
|
||||
- /root/camtalk/.env
|
||||
command: >
|
||||
sh -c '
|
||||
if [ -n "$$CAMTALK_REDIS_PASSWORD" ]; then
|
||||
|
||||
Reference in New Issue
Block a user