Frequently Asked Questions (Compose)

Frequently asked questions

If you don’t see your question here, feel free to drop by #docker-compose on freenode IRC and ask the community.

Can I control service startup order?

Yes - see Controlling startup order.

Why do my services take 10 seconds to recreate or stop?

Compose stop attempts to stop a container by sending a SIGTERM. It then waits for a default timeout of 10 seconds. After the timeout, a SIGKILL is sent to the container to forcefully kill it. If you are waiting for this timeout, it means that your containers aren’t shutting down when they receive the SIGTERM signal.

There has already been a lot written abou