Hello! Need some help,please.
I have this compose-file:
command: mysqld --sql_mode=””
If mysql crashs, the container restarts, no problem (“restart: always” is working fine).
I want to be notified that this container has auto restarted.
I want to receive an email ou run a bash script when docker restarts a crashed container.
I don´t want to be notified if I run “docker-compose up”. I just want to known when a problem occurs.