mirror of
https://dev.azure.com/tstanciu94/ReverseProxy/_git/ReverseProxy_Frontend
synced 2025-10-03 16:49:04 +03:00
Refactor health check command in Dockerfile for simplified health monitoring
This commit is contained in:
parent
15c080d574
commit
4f34b40dd6
@ -53,7 +53,7 @@ EXPOSE 80
|
|||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK --interval=120s --timeout=10s --start-period=60s --retries=3 \
|
HEALTHCHECK --interval=120s --timeout=10s --start-period=60s --retries=3 \
|
||||||
CMD if [ -n "$APP_SUBFOLDER" ]; then curl -f http://localhost/$APP_SUBFOLDER/ || exit 1; else curl -f http://localhost/ || exit 1; fi
|
CMD curl -f http://localhost/health || exit 1
|
||||||
|
|
||||||
# Start nginx
|
# Start nginx
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user