Skip to content

Commit

Permalink
Add healthcheck to docker-compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
Iapetus-11 committed Oct 3, 2023
1 parent 2538712 commit c9f69f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ services:
source: ./.env
target: /iapetus11.me/.env
init: true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 5m
timeout: 10s
retries: 2
start_period: 10s

0 comments on commit c9f69f3

Please sign in to comment.