chore(redis): 为 Redis 容器添加始终重启策略

- 在 docker-compose.yml 中为 Redis 服务配置 restart: always
- 确保容器在系统重启或崩溃后自动恢复运行
- 提高 Redis 服务的可用性和稳定性
This commit is contained in:
2026-04-19 18:51:48 +08:00
parent 44f2310af1
commit 2117c55954
+1
View File
@@ -4,6 +4,7 @@ services:
redis:
image: redis:7-alpine
container_name: redis
restart: always
command: redis-server --appendonly yes
ports:
- "6379:6379"