Skip to content

Commit

Permalink
feat: redis
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Jan 6, 2024
1 parent c2189ce commit 955ab1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions redis/redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 955ab1b

Please sign in to comment.