From charlesreid1

What is docker compose

We have a flag related to docker pods - groups of containers working in concert. That's what docker compose is for.

On the one hand, it's annoying because it provides a new and totally different way of running containers - via a YAML file - that is more complicated than the old command line way of running docker containers, and totally redundant, and a pain, and did I mention how annoying it is?

On the other hand, it's easier to bring a group of containers up/down together. Since most of the docker repos I'm working on lately are for a singular purpose and one-off application, this makes more sense. Now, the docker repos are focused ONLY on the Dockerfile, and the docker compose is focused on setting environment variables, ports, volume maps, etc.

(Although we still need a lot of guidance, or an example docker compose .yml, in each docker repo that we expect to use with docker compose.)

Docs

This is an excessive amount of documentation to read through just to get the hang of a tool that does EXACTLY WHAT I WAS ABLE TO DO PREVIOUSLY.

Worse: the documentation covers two baby topics and then dumps you straight into a 10,000-word exhaustive treatise on every command available in docker compose.

Great, thanks, just how I like spending my Saturday morning.

Link: https://docs.docker.com/compose/

See also

Docker/Swarm

Flags