Files
homelab-infra/infra/redis/docker-compose.yml
T
Micha 96d9015867 Harden code-server and move Redis password to secret file
Harden code-server and move Redis password to secret file
2026-04-17 07:56:29 +02:00

24 lines
495 B
YAML

services:
redis:
image: redis:7-alpine
container_name: Redis
restart: unless-stopped
command:
- sh
- -c
- exec redis-server --appendonly yes --requirepass "$$(cat /run/secrets/redis_password)"
volumes:
- /mnt/user/appdata/redis:/data
- /mnt/user/appdata/secrets/redis_password.txt:/run/secrets/redis_password:ro
networks:
- backend_net
security_opt:
- no-new-privileges:true
networks:
backend_net:
external: true