Docker image can be built with Docker 20.10, deployment script probes health itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 19:48:34 +02:00
co-authored by Claude Opus 5.5
parent 6c59c87f27
commit 0b8ebc4bbb
3 changed files with 48 additions and 20 deletions
+3 -2
View File
@@ -56,8 +56,9 @@ VOLUME /app/config
RUN mkdir -p /app/data
VOLUME /app/data
# Healthy when the server answers and can reach its database
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --start-interval=2s --retries=3 \
# Healthy when the server answers and can reach its database.
# (No --start-interval: it needs Docker 25, and deploy/rezervator.sh probes on its own.)
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD ["/app/rezervator", "-c", "/app/config/config.toml", "--healthcheck"]
# Run the server