diff --git a/docker-compose.coolify.yml b/docker-compose.coolify.yml index b85d2df..70d5434 100644 --- a/docker-compose.coolify.yml +++ b/docker-compose.coolify.yml @@ -41,6 +41,12 @@ services: depends_on: backend-compliance: condition: service_started + healthcheck: + test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000/"] + interval: 30s + timeout: 10s + start_period: 30s + retries: 3 restart: unless-stopped networks: - breakpilot-network @@ -54,6 +60,12 @@ services: - "3000" environment: NODE_ENV: production + healthcheck: + test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000/"] + interval: 30s + timeout: 10s + start_period: 30s + retries: 3 restart: unless-stopped networks: - breakpilot-network @@ -90,6 +102,12 @@ services: SMTP_FROM_NAME: ${SMTP_FROM_NAME:-BreakPilot Compliance} SMTP_FROM_ADDR: ${SMTP_FROM_ADDR:-compliance@breakpilot.ai} RAG_SERVICE_URL: http://bp-core-rag-service:8097 + healthcheck: + test: ["CMD", "curl", "-f", "http://127.0.0.1:8002/health"] + interval: 30s + timeout: 10s + start_period: 15s + retries: 3 restart: unless-stopped networks: - breakpilot-network