update 更新 redis.conf 存储策略 aof 与 rdb 配置参数

This commit is contained in:
疯狂的狮子li
2021-11-23 20:19:51 +08:00
parent d0c4b5bc76
commit 7af22453ba
2 changed files with 26 additions and 3 deletions

View File

@ -66,8 +66,8 @@ services:
# 配置文件
- /docker/redis/conf:/redis/config:rw
# 数据文件
- /docker/redis/data:/redis/data:rw
command: "redis-server /redis/config/redis.conf --appendonly yes"
- /docker/redis/data/:/redis/data/:rw
command: "redis-server /redis/config/redis.conf"
privileged: true
restart: always
networks: