Re-add restart policy

This commit is contained in:
Lucas Bustamante 2022-03-31 17:12:54 +01:00
parent c14a2f53b0
commit b26704791b
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ services:
db:
container_name: "${APP_NAME}_db"
image: mariadb:${DC_MARIADB_VERSION}
restart: on-failure
environment:
MYSQL_DATABASE: ${WORDPRESS_DB_NAME}
MYSQL_USER: ${WORDPRESS_DB_USER}
@ -26,6 +27,7 @@ services:
wordpress-www:
container_name: "${APP_NAME}_wordpress-www"
restart: on-failure
depends_on:
db:
condition: service_healthy
@ -46,6 +48,7 @@ services:
wordpress-cli:
container_name: "${APP_NAME}_wordpress-cli"
restart: on-failure
depends_on:
- wordpress-www
build: