Add curl in docker image for native healthchecks (#4170)

* Add curl in docker image for native healthchecks

Fixes this issue: https://github.com/FlowiseAI/Flowise/issues/4126

* fix: add container-native healthcheck

- Added curl utility in dockerfile
- Added healthcheck configuration in docker compose

* fix: exclude ping endpoint from logging
This commit is contained in:
Saqib Ahmed
2025-03-14 20:24:17 +05:00
committed by GitHub
parent 145a3bb415
commit 7867489727
4 changed files with 12 additions and 2 deletions
+6
View File
@@ -49,6 +49,12 @@ services:
- REDIS_CA=${REDIS_CA}
ports:
- '${PORT}:${PORT}'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT}/api/v1/ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
- ~/.flowise:/root/.flowise
entrypoint: /bin/sh -c "sleep 3; flowise start"