2026-10-26 05:59:55 +01:00
|
|
|
# Optional standalone Redis service. Heimdall currently does not require it.
|
|
|
|
|
services:
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:7-alpine
|
2026-10-28 06:38:24 +01:00
|
|
|
pull_policy: always
|
2026-10-26 05:59:55 +01:00
|
|
|
command: ["redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD:?Set REDIS_PASSWORD}"]
|
|
|
|
|
environment:
|
|
|
|
|
REDISCLI_AUTH: ${REDIS_PASSWORD:?Set REDIS_PASSWORD}
|
|
|
|
|
volumes:
|
|
|
|
|
- redis_data:/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
start_period: 10s
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
networks:
|
|
|
|
|
- heimdall-net
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
redis_data:
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
heimdall-net:
|
|
|
|
|
name: heimdall-net
|
|
|
|
|
external: true
|