install redis docker

This commit is contained in:
HPL 2024-10-14 16:47:38 +02:00
parent bc3069d784
commit 1085db0b65
3 changed files with 20 additions and 0 deletions

1
dockers/redis/.env Symbolic link
View File

@ -0,0 +1 @@
../../config/dockers.env

View File

@ -0,0 +1,18 @@
services:
redis:
image: redis:alpine
container_name: redis
restart: always
command: redis-server --requirepass ${REDIS_PASSWORD}
env_file:
- ../../secret/env-redis
volumes:
- redisData:/data
networks:
# mettre ici tous les réseaux des nc des orgas
- redisNet
redisdNet:
external: true
name: redisNet

1
secret.tmpl/env-redis Normal file
View File

@ -0,0 +1 @@
REDIS_PASSWORD=