Give the image healthcheck the same boot grace

The Dockerfile allowed 5s before failed health probes count, while
compose allows 40s; boot runs migrations and settings seeding, so a
plain docker run could mark a healthy first boot unhealthy.
This commit is contained in:
Juan Denis committed 2026-10-10 18:23:44 -04:00
1 parent 587dcec12a
commit 75bd900442
1 file changed
+3 -2
+3 -2
View File
@@ -178,8 +178,9 @@ USER serverkit
# Expose port # Expose port
EXPOSE 5000 EXPOSE 5000
# Health check # Health check. Boot runs schema sync, migrations and settings seeding; the
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ # 40s grace matches docker-compose.yml so a slow first boot is not unhealthy.
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f "http://localhost:${SERVERKIT_BACKEND_PORT:-5000}/api/v1/system/health" || exit 1 CMD curl -f "http://localhost:${SERVERKIT_BACKEND_PORT:-5000}/api/v1/system/health" || exit 1
# Working directory for the backend # Working directory for the backend