build(docker): add restart policies
This commit is contained in:
parent
c0d3f4f747
commit
6042f3cdec
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue