Skip to content

Commit

Permalink
feat: update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Mar 23, 2024
1 parent 215e63b commit 976315b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ services:
DB_SSL: null
DB_CA_CERTFILE_PATH: null
MIX_ENV: prod
restart: unless-stopped
command: sh -c "/app/bin/migrate && /app/bin/server"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:4000/_ready"]
interval: 30s
retries: 3
restart: unless-stopped
depends_on:
- db

Expand All @@ -41,6 +37,10 @@ services:
image: nginx:1.25.4-alpine3.18
ports:
- '80:80'
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost/_ready"]
interval: 30s
retries: 3
restart: unless-stopped
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
Expand Down

0 comments on commit 976315b

Please sign in to comment.