NewsCrawler.org

Docker Compose: defining and running multi-container applications

docker/compose
Image: GitHub Trending

Docker Compose is a tool for running applications made of several containers on Docker. The application is described in a Compose file, which sets how each container is configured. Once the file exists, the whole application starts with one command: `docker compose up`.

Compose is included in Docker Desktop for Windows and macOS. On Linux, users download a binary from the release page, rename it to `docker-compose`, and copy it to a plugin folder such as `$HOME/.docker/cli-plugins`, possibly making it executable with `chmod +x`. The quick start has three steps: describe the environment in a Dockerfile[1], list the services in `compose.yaml`, and run `docker compose up`.

The README says that Docker Swarm[2] did not adopt the newer compose specification, so it lacks some recent Compose features. After Mirantis acquired Swarm, Docker Inc stopped maintaining it, so some Compose features are not available to Swarm users. The Python version of Compose remains available under the `v1` branch.

Read the original github.com

Sources

  • GitHub Trending

    docker/compose

    173 stars today39,005 stars6,045 forks

First seen: Читать по-русски

Open as a page