Skip to content

Commit

Permalink
feat: add Docker healthcheck (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
dspashynskyi authored Oct 17, 2024
1 parent 204d5b9 commit f46a2cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ EXPOSE 5000
USER appuser
ENTRYPOINT ["/docker_entrypoint.sh"]

HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=6 \
CMD wget --no-verbose --tries=1 --spider http://localhost:5000/health || exit 1

CMD uvicorn aidial_adapter_dial.app:app --host 0.0.0.0 --port 5000 --timeout-keep-alive ${TIMEOUT_KEEP_ALIVE:-5}

0 comments on commit f46a2cd

Please sign in to comment.