mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Renamed redis role
This commit is contained in:
17
roles/svc-db-redis/templates/service.yml.j2
Normal file
17
roles/svc-db-redis/templates/service.yml.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
# This template needs to be included in docker-compose.yml, which depend on redis
|
||||
redis:
|
||||
image: redis:alpine
|
||||
container_name: {{application_id}}-redis
|
||||
restart: {{docker_restart_policy}}
|
||||
logging:
|
||||
driver: journald
|
||||
volumes:
|
||||
- redis:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 30
|
||||
networks:
|
||||
- default
|
||||
{{ "\n" }}
|
Reference in New Issue
Block a user