Skip to content

Commit

Permalink
config: wget to localhost with Host header
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarLiner committed Jun 27, 2021
1 parent c4d09d3 commit 7a8c623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ RUN adduser -S wagtail && chown -R wagtail /code
USER wagtail

EXPOSE ${PORT}
HEALTHCHECK --interval=30s --timeout=3s --retries=3\
CMD wget -nv --header="Accept: application/json" -t1 "http://$DJANGO_HOST:$PORT/healthcheck" -O- || exit 1
HEALTHCHECK --start-period=10s --interval=30s --timeout=3s --retries=3\
CMD wget -nv --header="Accept: application/json" --header="Host: $DJANGO_HOST" -t1 "http://localhost:$PORT/healthcheck" -O- || exit 1
CMD ./docker_entry.sh gunicorn codeanon.wsgi:application --workers=3 --bind=0.0.0.0:$PORT

0 comments on commit 7a8c623

Please sign in to comment.