From 955ab1b62da22725e671166bcad5db9f77dd0336 Mon Sep 17 00:00:00 2001 From: Michael DeMarco Date: Fri, 5 Jan 2024 20:37:25 -0800 Subject: [PATCH] feat: redis --- docker-compose.local.yml | 5 +++-- docker-compose.yml | 2 +- redis/redis.conf | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docker-compose.local.yml b/docker-compose.local.yml index 858ef27..bd66598 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -48,5 +48,6 @@ services: redis: image: "redis:alpine" - ports: - - "6379:6379" + volumes: + - ./redis/redis.conf:/usr/local/etc/redis/redis.conf + command: redis-server /usr/local/etc/redis/redis.conf diff --git a/docker-compose.yml b/docker-compose.yml index 59cbbba..7695888 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,7 +34,7 @@ services: redis: image: "redis:alpine" volumes: - - /etc/redis/redis.conf:/usr/local/etc/redis/redis.conf + - ./redis/redis.conf:/usr/local/etc/redis/redis.conf command: redis-server /usr/local/etc/redis/redis.conf nginx: diff --git a/redis/redis.conf b/redis/redis.conf index 0f7b381..de81449 100644 --- a/redis/redis.conf +++ b/redis/redis.conf @@ -65,7 +65,7 @@ # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES # JUST COMMENT OUT THE FOLLOWING LINE. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -bind 127.0.0.1 +# bind 127.0.0.1 # Protected mode is a layer of security protection, in order to avoid that # Redis instances left open on the internet are accessed and exploited. @@ -84,7 +84,7 @@ bind 127.0.0.1 # you are sure you want clients from other hosts to connect to Redis # even if no authentication is configured, nor a specific set of interfaces # are explicitly listed using the "bind" directive. -protected-mode yes +protected-mode no # Accept connections on the specified port, default is 6379 (IANA #815344). # If port 0 is specified Redis will not listen on a TCP socket.