|
|
Pokud by bylo výjimečně potřeba, lze do docker compose přidat službu, ketrá automaticky restartuje image, pokud je `unhealthy`.
|
|
|
|
|
|
```yml
|
|
|
autoheal:
|
|
|
image: willfarrell/autoheal
|
|
|
restart: always
|
|
|
volumes:
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
```
|
|
|
|
|
|
Kontrolovanému kontejneru se musí nastavit label `autoheal=true`
|
|
|
|
|
|
[Více info](https://hub.docker.com/r/willfarrell/autoheal/) |
|
|
\ No newline at end of file |