Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
27291f2e
"vscode:/vscode.git/clone" did not exist on "252d6c530141ce7af14531db79d1e7ae56ef7e65"
Commit
27291f2e
authored
Jan 09, 2026
by
shaw
Browse files
fix(docker): 修改 Redis 配置以支持可选的密码设置
parent
5d1badfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/docker-compose.yml
View file @
27291f2e
...
...
@@ -173,11 +173,12 @@ services:
volumes
:
-
redis_data:/data
command
:
>
redis-server
--save 60 1
--appendonly yes
--appendfsync everysec
${REDIS_PASSWORD:+--requirepass ${REDIS_PASSWORD}}
sh -c '
redis-server
--save 60 1
--appendonly yes
--appendfsync everysec
${REDIS_PASSWORD:+--requirepass "$REDIS_PASSWORD"}'
environment
:
-
TZ=${TZ:-Asia/Shanghai}
# REDISCLI_AUTH is used by redis-cli for authentication (safer than -a flag)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment