Docker health check

This commit is contained in:
2026-01-15 09:25:38 +05:30
parent 88b53b5781
commit aaf64ab75a
4 changed files with 185 additions and 27 deletions
+4
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"]