Docker Automatic Restart
Two paths make a container heal itself with compose alone. A restart policy reacts to exit, meaning PID 1 died, and unless-stopped survives a reboot; a healthcheck plus the autoheal container catches the case where the container still runs but the process inside hung. Both end at docker restart.
