"...src/components/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "101ef0cf6213ebf693677d677c2a2ef2f3f917f0"
Commit 27291f2e authored by shaw's avatar shaw
Browse files

fix(docker): 修改 Redis 配置以支持可选的密码设置

parent 5d1badfe
...@@ -173,11 +173,12 @@ services: ...@@ -173,11 +173,12 @@ services:
volumes: volumes:
- redis_data:/data - redis_data:/data
command: > command: >
sh -c '
redis-server redis-server
--save 60 1 --save 60 1
--appendonly yes --appendonly yes
--appendfsync everysec --appendfsync everysec
${REDIS_PASSWORD:+--requirepass ${REDIS_PASSWORD}} ${REDIS_PASSWORD:+--requirepass "$REDIS_PASSWORD"}'
environment: environment:
- TZ=${TZ:-Asia/Shanghai} - TZ=${TZ:-Asia/Shanghai}
# REDISCLI_AUTH is used by redis-cli for authentication (safer than -a flag) # REDISCLI_AUTH is used by redis-cli for authentication (safer than -a flag)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment