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