Docker health check

This commit is contained in:
2026-01-05 11:14:38 +00:00
parent 88b53b5781
commit aaf64ab75a
4 changed files with 186 additions and 28 deletions

View File

@ -61,4 +61,8 @@ RUN chmod 777 /app/docker-entrypoint.sh \
&& ln -s /app/docker-entrypoint.sh /
ENTRYPOINT ["docker-entrypoint.sh"]
# at the end of your Dockerfile, before CMD or after EXPOSE
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost/health || exit 1
CMD ["poetry", "run", "/app/run.sh"]