From 82d3ffccf7627b8366cdfbedcf02919008399619 Mon Sep 17 00:00:00 2001 From: "thiswillbeyourgithub (aider)" <26625900+thiswillbeyourgithub@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:01:26 +0200 Subject: [PATCH] feat: add healthcheck to Dockerfile for proton-bridge process monitoring --- build/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/Dockerfile b/build/Dockerfile index e90ff25..696e476 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -17,6 +17,10 @@ LABEL maintainer="Simon Felding " EXPOSE 25/tcp EXPOSE 143/tcp +# Add healthcheck to monitor proton-bridge process +HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=60s \ + CMD bash -c "pgrep -f proton-bridge || exit 1" + # Install dependencies and protonmail bridge RUN apt-get update \ && apt-get install -y --no-install-recommends socat pass libsecret-1-0 ca-certificates \