Skip to content

Commit

Permalink
Healthcheck: account for custom bind port (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
djarbz authored May 24, 2023
1 parent ec75728 commit 5913332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 5913332

Please sign in to comment.