Skip to content

Commit

Permalink
redis config with repl-backlog
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysmeow committed Jul 18, 2024
1 parent 04f1041 commit 6d7b82a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ services:
redis:
image: redis
container_name: wm-redis
command: redis-server --requirepass qwerty
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
networks:
Expand Down
3 changes: 3 additions & 0 deletions redis.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
requirepass qwerty
repl-backlog-ttl 3600
repl-backlog-size 1048576

0 comments on commit 6d7b82a

Please sign in to comment.