chore: add /status /ready best practices for Docker & K8S

This commit is contained in:
Edouard Vanbelle
2026-05-11 00:22:03 +02:00
parent 8b08ee165d
commit 03aac93db3
6 changed files with 58 additions and 5 deletions
+2 -2
View File
@@ -67,10 +67,10 @@ WORKDIR /app
# Expose application port
EXPOSE 8086
# Basic health check — verifies the HTTP server responds on the main port.
# Liveness probe — verifies the HTTP server is up (no DB check, fast).
# Docker / Compose / Swarm will mark the container unhealthy after 3 failures.
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD wget -qO- http://localhost:8086/api/version || exit 1
CMD wget -qO- http://localhost:8086/health || exit 1
# Entrypoint fixes volume permissions then drops to oxicloud user.
# The container starts as root so it can chown mounted volumes,