Implemented repository wide restart policy

This commit is contained in:
2024-01-12 20:57:58 +01:00
parent 695618a170
commit 2f3d90cd07
26 changed files with 53 additions and 53 deletions

View File

@@ -5,7 +5,7 @@
logging:
driver: journald
image: mariadb
restart: always
restart: {{docker_restart_policy}}
environment:
MYSQL_DATABASE: "{{database_name}}"
MYSQL_USER: "{{database_username}}"

View File

@@ -8,7 +8,7 @@
- POSTGRES_USER={{database_username}}
- POSTGRES_DB={{database_name}}
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C
restart: always
restart: {{docker_restart_policy}}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U {{database_name}}"]
interval: 10s

View File

@@ -2,7 +2,7 @@
redis:
image: redis:alpine
container_name: {{docker_compose_project_name}}-redis
restart: always
restart: {{docker_restart_policy}}
logging:
driver: journald
volumes: