mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-10-23 03:27:43 +09:00
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:
1 parent
587dcec12a
commit
75bd900442
1 file changed
+3
-2
+3
-2
@@ -178,8 +178,9 @@ USER serverkit
|
||||
# Expose port
|
||||
EXPOSE 5000
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
# Health check. Boot runs schema sync, migrations and settings seeding; the
|
||||
# 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
|
||||
|
||||
# Working directory for the backend
|
||||
|
||||
Reference in new issue
Block a user