Re-add restart policy
This commit is contained in:
parent
c14a2f53b0
commit
b26704791b
|
@ -5,6 +5,7 @@ services:
|
||||||
db:
|
db:
|
||||||
container_name: "${APP_NAME}_db"
|
container_name: "${APP_NAME}_db"
|
||||||
image: mariadb:${DC_MARIADB_VERSION}
|
image: mariadb:${DC_MARIADB_VERSION}
|
||||||
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: ${WORDPRESS_DB_NAME}
|
MYSQL_DATABASE: ${WORDPRESS_DB_NAME}
|
||||||
MYSQL_USER: ${WORDPRESS_DB_USER}
|
MYSQL_USER: ${WORDPRESS_DB_USER}
|
||||||
|
@ -26,6 +27,7 @@ services:
|
||||||
|
|
||||||
wordpress-www:
|
wordpress-www:
|
||||||
container_name: "${APP_NAME}_wordpress-www"
|
container_name: "${APP_NAME}_wordpress-www"
|
||||||
|
restart: on-failure
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
@ -46,6 +48,7 @@ services:
|
||||||
|
|
||||||
wordpress-cli:
|
wordpress-cli:
|
||||||
container_name: "${APP_NAME}_wordpress-cli"
|
container_name: "${APP_NAME}_wordpress-cli"
|
||||||
|
restart: on-failure
|
||||||
depends_on:
|
depends_on:
|
||||||
- wordpress-www
|
- wordpress-www
|
||||||
build:
|
build:
|
||||||
|
|
Loading…
Reference in New Issue