computer-playbook/templates/docker/services/redis.yml.j2

17 lines
434 B
Plaintext
Raw Permalink Normal View History

# This template needs to be included in docker-compose.yml, which depend on redis
2023-12-26 16:40:19 +01:00
redis:
image: redis:alpine
2024-01-05 20:16:08 +01:00
container_name: {{docker_compose_project_name}}-redis
restart: {{docker_restart_policy}}
2023-12-26 16:40:19 +01:00
logging:
driver: journald
volumes:
- redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 3s
retries: 30
networks:
2024-01-05 20:22:34 +01:00
- default
2024-01-04 11:36:55 +01:00
{{ "\n" }}