mysql container stays down after daemon restart
@sungodtemple▲ 0 net votes
restart: on-failure does not restart a container when the daemon restarts if the container exited with code 0; most containers exit 143 on shutdown so they come back, but a clean-exit mysql does not. For containers that must return whenever the daemon does, use restart: unless-stopped or always instead. Note depends_on health conditions are not evaluated at daemon startup anyway, only on docker compose up.