Browse Source

add to local

stanley-king 4 years ago
parent
commit
9064e0dfd9
3 changed files with 8 additions and 6 deletions
  1. 4 4
      conf/redis/6379.conf
  2. 2 1
      docker-compose-mac.yml
  3. 2 1
      docker-compose-test.yml

+ 4 - 4
conf/redis/6379.conf

@@ -40,7 +40,7 @@
 
 # By default Redis does not run as a daemon. Use 'yes' if you need it.
 # Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
-daemonize yes
+daemonize no
 
 # When running daemonized, Redis writes a pid file in /var/run/redis.pid by
 # default. You can specify a custom pid file location here.
@@ -106,7 +106,7 @@ loglevel notice
 # Specify the log file name. Also the empty string can be used to force
 # Redis to log on the standard output. Note that if you use standard
 # output for logging but daemonize, logs will be sent to /dev/null
-logfile /var/redis/redis.log
+#logfile /var/redis.log
 
 # To enable logging to the system logger, just set 'syslog-enabled' to yes,
 # and optionally update the other syslog parameters to suit your needs.
@@ -162,7 +162,7 @@ save 60 10000
 # and persistence, you may want to disable this feature so that Redis will
 # continue to work as usual even if there are problems with disk,
 # permissions, and so forth.
-stop-writes-on-bgsave-error yes
+stop-writes-on-bgsave-error no
 
 # Compress string objects using LZF when dump .rdb databases?
 # For default that's set to 'yes' as it's almost always a win.
@@ -190,7 +190,7 @@ 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 ./
 
 ################################# REPLICATION #################################
 

+ 2 - 1
docker-compose-mac.yml

@@ -21,8 +21,9 @@ services:
       - "6380:6379"
     volumes:
       - $PWD/conf/etc/localtime:/etc/localtime:ro
+      - $PWD/conf/redis/6379.conf:/etc/redis/redis.conf
     container_name: "logic-redis"
-    command: [ "redis-server"]
+    command: [ redis-server,"/etc/redis/redis.conf"]
 
   lfpm:
     image: php-fpm:alpine

+ 2 - 1
docker-compose-test.yml

@@ -20,8 +20,9 @@ services:
       - "6380:6379"
     volumes:
       - $PWD/conf/etc/localtime:/etc/localtime:ro
+      - $PWD/conf/redis/6379.conf:/etc/redis/redis.conf
     container_name: "logic-redis"
-    command: [ "redis-server"]
+    command: [redis-server,"/etc/redis/redis.conf"]
 
   lfpm:
     image: php-fpm:alpine