Forráskód Böngészése

fix redis cannot save dump.rdb

stanley-king 4 éve
szülő
commit
8e52bbb148
2 módosított fájl, 1 hozzáadás és 2 törlés
  1. 0 1
      conf/redis/6379.conf
  2. 1 1
      docker-compose.yml

+ 0 - 1
conf/redis/6379.conf

@@ -190,7 +190,6 @@ dbfilename dump.rdb
 # The Append Only File will also be created inside this directory.
 #
 # Note that you must specify a directory here, not a file name.
-#dir /var/redis
 dir /data
 
 ################################# REPLICATION #################################

+ 1 - 1
docker-compose.yml

@@ -26,7 +26,7 @@ services:
     volumes:
       - $PWD/conf/etc/localtime:/etc/localtime:ro
       - $PWD/conf/redis/6379.conf:/etc/redis/redis.conf
-      - $PWD/conf/redis:/var/redis
+      - /mnt/redisdata:/data
     container_name: "panda-redis"
     command: [redis-server,"/etc/redis/redis.conf"]