Skip to content

My containers keep restarting when something is wrong

Olivier Berthonneau edited this page Jul 17, 2016 · 1 revision

In production, when a fatal error occurs, the application will crash and we expect docker-compose to restart it just like never happened to avoid down time. In development, we will want to know when such things happens. One solution is to ban restart: always from your docker-compose-dev.yml.

Developers want to know when stuff crashes. No need to hide bugs behind the carpet if a fatal error occurred.

Clone this wiki locally