diff --git a/docker/compose.prod.yml b/docker/compose.prod.yml index 66996bc..e934f6e 100644 --- a/docker/compose.prod.yml +++ b/docker/compose.prod.yml @@ -25,6 +25,11 @@ services: APP_BASE_URL: ${APP_BASE_URL:-http://127.0.0.1:8080} ports: - "8080:8080" + healthcheck: + test: ["CMD-SHELL", "curl -fsS http://localhost:${SERVER_PORT:-8080}/health | grep -q '\"status\":\"healthy\"'"] + interval: 10s + timeout: 5s + retries: 5 restart: always networks: - goyco