Updated health check docs
@@ -212,12 +212,16 @@ The web container will have its limits set to the same values as reservations, b
## Healthchecks
-Healthchecks can be described in the `healthcheck` section in the service. It translates to `LivenessProbe` in ACI. By that, the container is restarted if it becomes unhealthy.
+Healthchecks can be described in the `healthcheck` section in the service. It translates to `LivenessProbe` in ACI. By that, the container is terminated if it becomes unhealthy.
+In order to restart automatically, the container also need to have a restart policy not set to "none"
```yaml
services:
web:
image: nginx
+ deploy:
+ restart_policy:
+ condition: on-failure
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
