From 6042f3cdeca241170f7ecb7e64d0ae9f07c5fd23 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 7 Dec 2021 02:20:10 +0000 Subject: [PATCH] build(docker): add restart policies --- docker-compose.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 1d6bc7f..09a1445 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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