fix: 修复Docker全栈部署配置
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user