Docker Compose Exited with Code 0

08-26-2019


Docker Compose is a great tool for orchestrating docker containers within an environment, especially for local development.

A common error is: <service name> exited with code 0. Which is usually seen when a container stops immediately.

The fix: Add stdin_open: true and tty: true to each service you want to start up and remain running.