Skip to content

Commit

Permalink
Add healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog committed May 14, 2024
1 parent 4d32b55 commit b14b676
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?Variable not set}
ports:
- 8000:8000
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000/health/live || exit 1"]

db:
image: postgres:16
Expand Down Expand Up @@ -46,6 +48,8 @@ services:
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-O", "-", "http://localhost:8080/misc/ping"]


#TODO(berry): Traefik
Expand Down

0 comments on commit b14b676

Please sign in to comment.