From 59133327de7290ba33285cb4f7bd39dc3ad66aab Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Wed, 24 May 2023 05:05:27 -0500 Subject: [PATCH] Healthcheck: account for custom bind port (#295) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e42603b..8bc96e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,5 +70,5 @@ RUN chmod +x wg-ui COPY init.sh . EXPOSE 5000/tcp -HEALTHCHECK CMD ["wget","--output-document=-","--quiet","--tries=1","http://127.0.0.1:5000/_health"] +HEALTHCHECK CMD ["wget","--output-document=-","--quiet","--tries=1","http://127.0.0.1:$(echo ${BIND_ADDRESS:-5000} | cut -d ':' -f2)/_health"] ENTRYPOINT ["./init.sh"]