Skip to content

Commit

Permalink
chore: Only enable nginx healthcheck if ready
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Dec 3, 2024
1 parent e26fd27 commit 4e2e94e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ COPY --link docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
# Copy public files from API
COPY --link --from=php-prod --chown=${USER_UID}:${USER_UID} /app/public /app/public


# Only enable healthcheck in production when the app is ready to serve requests on root path
# This could prevent Traefik or an ingress controller to route traffic to the app
#HEALTHCHECK --start-period=1m30s --interval=1m --timeout=6s CMD curl --fail -I http://localhost

#########
# MySQL #
Expand Down

0 comments on commit 4e2e94e

Please sign in to comment.