From b14b676d3b2464e952c97c7d54233d7aafb68c2f Mon Sep 17 00:00:00 2001 From: Berry den Hartog <38954346+berrydenhartog@users.noreply.github.com> Date: Tue, 14 May 2024 13:30:58 +0000 Subject: [PATCH] Add healthchecks --- compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compose.yml b/compose.yml index 17029737..7fb6e1fe 100644 --- a/compose.yml +++ b/compose.yml @@ -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 @@ -46,6 +48,8 @@ services: depends_on: db: condition: service_healthy + healthcheck: + test: ["CMD", "wget", "-O", "-", "http://localhost:8080/misc/ping"] #TODO(berry): Traefik