Docker - Production Patterns
You have a Docker Compose file with this service:
The container keeps restarting even though the app is healthy. What is the likely cause?
web:
image: myapp:latest
restart: on-failure
healthcheck:
test: curl -f http://localhost/health || exit 1
interval: 1m
retries: 3The container keeps restarting even though the app is healthy. What is the likely cause?
