fix: 修复docker-compose.yml redis密码传递问题
This commit is contained in:
@@ -134,6 +134,8 @@ services:
|
|||||||
${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=${REDIS_PASSWORD:-}
|
||||||
networks:
|
networks:
|
||||||
- sub2api-network
|
- sub2api-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
Reference in New Issue
Block a user