Docker-compose Tips and Tricks

Docker-compose is a very useful tool when you need to orchestrate multiple containers.

Here are some useful tips and best practises.

Build container

Build and start containers in detached mode:

  • –no-deps – ignore the container dependency
  • –no-cache – ignore the cache

Container logs

Control containers

The following command will stop and the remove all docker-compose containers: