Introdução
No Dockerfile
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl --fail http://localhost:80 || exit 1No docker-compose.yml
version: "3.8"
services:
web:
image: myapp
ports:
- "80:80"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5sComo monitorar
Laboratório




Last updated