From a8450aa792ab9d26f69bd33ac074abdc14703d1c Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Fri, 1 Mar 2024 18:20:38 -0600 Subject: [PATCH] new config --- redis/docker-compose.yml | 8 ++++---- redis/redis.conf | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/redis/docker-compose.yml b/redis/docker-compose.yml index 6423ae6..d0eedf6 100644 --- a/redis/docker-compose.yml +++ b/redis/docker-compose.yml @@ -4,10 +4,10 @@ services: container_name: redis-stack image: "redis/redis-stack:latest" ports: - - 6380:6379 + - '6380:6380' environment: - - REDIS_ARGS="--notify-keyspace-events Ksg" - - REDIS_AOF_ENABLED=yes + - REDIS_ARGS = "--save 10 1 --appendonly yes" + command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ] volumes: - ./redis-data:/data - ./redis.conf:/usr/local/etc/redis/redis.conf @@ -16,4 +16,4 @@ services: networks: bizmatch: - external: true \ No newline at end of file + external: true diff --git a/redis/redis.conf b/redis/redis.conf index 40701d9..03e41d2 100644 --- a/redis/redis.conf +++ b/redis/redis.conf @@ -1,3 +1,4 @@ +port 6380 daemonize no loadmodule /opt/redis-stack/lib/rediscompat.so loadmodule /opt/redis-stack/lib/redisearch.so @@ -7,4 +8,6 @@ loadmodule /opt/redis-stack/lib/redisbloom.so loadmodule /opt/redis-stack/lib/redisgears.so v8-plugin-path /opt/redis-stack/lib/libredisgears_v8_plugin.so appendonly yes -appendfsync always \ No newline at end of file +appendfsync always + +protected-mode no