mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-27 22:11:12 +00:00
improve security; add redis authentication
This commit is contained in:
parent
ded229e84c
commit
6a27814f85
|
@ -57,7 +57,7 @@ session:
|
||||||
host: authelia-redis
|
host: authelia-redis
|
||||||
port: 6379
|
port: 6379
|
||||||
# This secret can also be set using the env variables AUTHELIA_SESSION_REDIS_PASSWORD_FILE
|
# This secret can also be set using the env variables AUTHELIA_SESSION_REDIS_PASSWORD_FILE
|
||||||
# password: authelia
|
password: SuperSecureRedisAuthPassword # must be the same as in the docker-compose.yml defined for the redis services
|
||||||
|
|
||||||
regulation:
|
regulation:
|
||||||
max_retries: 3
|
max_retries: 3
|
||||||
|
|
|
@ -24,6 +24,7 @@ services:
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
container_name: authelia-redis
|
container_name: authelia-redis
|
||||||
|
command: redis-server --requirepass SuperSecureRedisAuthPassword # also reflect this in the authelia config file
|
||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authelia/redis:/data
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authelia/redis:/data
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user