Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
build(docker): define restart policy
Browse files Browse the repository at this point in the history
  • Loading branch information
opdavies committed Dec 28, 2021
1 parent 3651d69 commit 6a59a89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ INTEGROMAT_WEBHOOK_URL=
# Which environment is running? This should be "development" or "production".
# NODE_ENV=development
NODE_ENV=production

DOCKER_RESTART_POLICY=no
DOCKER_RESTART_POLICY=unless-stopped
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
condition: service_started
ports:
- "${DOCKER_WEB_PORT:-127.0.0.1:80}:80"
restart: unless-stopped
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"

php:
build:
Expand All @@ -25,7 +25,7 @@ services:
depends_on:
mysql:
condition: service_healthy
restart: unless-stopped
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"

mysql:
image: mariadb:10
Expand All @@ -37,7 +37,7 @@ services:
healthcheck:
test: ["CMD-SHELL", "bash", "-c", "echo > /dev/tcp/localhost/3306"]
interval: 1s
restart: unless-stopped
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"

volumes:
assets:
Expand Down

0 comments on commit 6a59a89

Please sign in to comment.