Skip to content

Commit

Permalink
Small update to HEALTHCHECK command
Browse files Browse the repository at this point in the history
- add trailing / to avoid redirects
- use IP address instead of hostname
- depending on ALLOWED_HOSTS this request may be blocked
  • Loading branch information
atodorov committed Jun 7, 2023
1 parent 7be7b86 commit 0a179f7
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 @@ -7,7 +7,7 @@ RUN microdnf -y module enable nginx:1.22 && \
microdnf -y --nodocs update && \
microdnf clean all

HEALTHCHECK CMD curl --fail --insecure https://localhost:8443/accounts/login
HEALTHCHECK CMD curl --fail --insecure https://127.0.0.1:8443/accounts/login/
EXPOSE 8080
EXPOSE 8443
COPY ./httpd-foreground /httpd-foreground
Expand Down

0 comments on commit 0a179f7

Please sign in to comment.