Add healtcheck endpoint
This commit is contained in:
@@ -25,4 +25,5 @@ COPY --from=builder /app/etc/apiary/apiary.toml /app/apiary.toml
|
||||
COPY --from=builder /app/bin/apiary /app/apiary
|
||||
EXPOSE 8080
|
||||
EXPOSE 2222
|
||||
CMD ["/app/apiary", "serve"]
|
||||
HEALTHCHECK --interval=1m --timeout=10s --start-period=5s --retries=3 CMD curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8080/api/health || exit 1
|
||||
CMD ["/app/apiary", "serve"]
|
||||
|
Reference in New Issue
Block a user