Standard: Docker HEALTHCHECK

This commit is contained in:
2026-11-03 16:21:33 +01:00
parent 6db0e29e1a
commit d358c96969
+2
View File
@@ -6,4 +6,6 @@ ENV HOME=/data
ENV HOST=0.0.0.0
ENV PORT=8899
EXPOSE 8899
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
CMD python3 -c "import urllib.request,sys; r=urllib.request.urlopen('http://127.0.0.1:8899/state'); sys.exit(0 if r.status==200 else 1)"
CMD ["python3", "server.py"]