build(docker): add restart policies

This commit is contained in:
Oliver Davies 2021-12-07 02:20:10 +00:00
parent c0d3f4f747
commit 6042f3cdec

View file

@ -20,6 +20,7 @@ services:
condition: service_started condition: service_started
ports: ports:
- 80:80 - 80:80
restart: unless-stopped
php: php:
build: build:
@ -34,6 +35,7 @@ services:
depends_on: depends_on:
mysql: mysql:
condition: service_healthy condition: service_healthy
restart: unless-stopped
mysql: mysql:
image: mariadb:10 image: mariadb:10
@ -45,6 +47,7 @@ services:
healthcheck: healthcheck:
test: ["CMD-SHELL", "bash", "-c", "echo > /dev/tcp/localhost/3306"] test: ["CMD-SHELL", "bash", "-c", "echo > /dev/tcp/localhost/3306"]
interval: 1s interval: 1s
restart: unless-stopped
node: node:
image: node:14-alpine image: node:14-alpine