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:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user