fix: add python healthcheck for coolify
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
FROM mitmproxy/mitmproxy:latest
|
||||
RUN pip install --no-cache-dir httpie 2>/dev/null; apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* || true
|
||||
EXPOSE 8888 8081
|
||||
HEALTHCHECK NONE
|
||||
HEALTHCHECK --interval=10s --timeout=5s --retries=10 --start-period=15s \
|
||||
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8081')" || exit 1
|
||||
ENTRYPOINT ["mitmweb", "--web-host", "0.0.0.0", "--web-port", "8081", "-p", "8888", "--ssl-insecure", "--set", "web_open_browser=false", "--set", "web_password=mitm"]
|
||||
|
||||
Reference in New Issue
Block a user