Skip to content

Commit

Permalink
Merge pull request #373 from fablabbcn/enhancement/docker-web-healthc…
Browse files Browse the repository at this point in the history
…heck

Add healthcheck on web to restart based on curl
  • Loading branch information
oscgonfer authored Nov 5, 2024
2 parents cb49588 + 2709194 commit c3aca08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compose/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ services:
app:
condition: service_healthy
restart: true
healthcheck:
test: ["CMD-SHELL", "curl http://app:3000"]
timeout: 10s
start-period: 5s
restart: always
ports:
- 80:80
- 80:80/udp
Expand Down

0 comments on commit c3aca08

Please sign in to comment.