Docker Compose
Laboratório
$ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESservices:
web:
image: marcelodpbarbieri/simulador-caos:v1
ports:
- 8080:3000
restart: always
healthcheck:
test: ["CMD","curl","-f","http://localhost:3000/health"]
interval: 10s
timeout: 5s
retries: 2
start_period: 30s$ docker compose up -d
[+] Running 2/2
✔ Network marcelo_default Created 0.1s
✔ Container marcelo-web-1 Started 0.4s




Cancelar Healthcheck
Last updated