forked from mirrors/bookwyrm
Secure redis.conf
This commit is contained in:
parent
439feac110
commit
54b924a4e2
2 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,8 @@ services:
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
command: redis-server --requirepass ${REDIS_PASSWORD}
|
command: redis-server --requirepass ${REDIS_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
|
|
4
redis.conf
Normal file
4
redis.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
bind 127.0.0.1 ::1
|
||||||
|
requirepass pAsSwOrD
|
||||||
|
protected-mode yes
|
||||||
|
port 6379
|
Loading…
Reference in a new issue