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

15 lines
378 B
Plaintext
Raw 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
restart: always
logging:
driver: journald
volumes:
- redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 3s
retries: 30
networks:
- {{docker_compose_project_name}}_network