fix: 修复Docker全栈部署配置

This commit is contained in:
Nixevol
2026-07-05 08:12:20 +08:00
parent f496300829
commit a0ccf3805b
9 changed files with 67 additions and 5 deletions
+8
View File
@@ -57,6 +57,14 @@ services:
image: ${REDIS_IMAGE:-redis:7-alpine} # 缓存/队列镜像;dev.py 拉官方失败时会自动切到 1Panel 代理
container_name: artveris-redis
restart: unless-stopped
command: >-
sh -c 'if [ -n "$${REDIS_PASSWORD}" ]; then
redis-server --appendonly yes --requirepass "$${REDIS_PASSWORD}";
else
redis-server --appendonly yes;
fi'
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD:-}
ports:
# 宿主机端口可改:对应 config.yaml -> redis.port(容器内固定 6379)
- "${REDIS_PORT:-6379}:6379"