diff --git a/portainer/Dockerfile b/portainer/Dockerfile index f1df18bd3..3e592e77d 100644 --- a/portainer/Dockerfile +++ b/portainer/Dockerfile @@ -130,4 +130,5 @@ LABEL \ # 6 Healthcheck # ################# -HEALTHCHECK CMD wget --no-verbose --tries=1 --spider http://localhost:9000 || exit 1 +ARG WEBUI_PORT="9000" +HEALTHCHECK CMD wget --no-verbose --tries=1 --spider http://localhost:"$WEBUI_PORT" || exit 1