Docker/Compose

From Gentoo Wiki
< Docker(Redirected from Docker-compose)
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

Docker Compose is a tool for running multi-container applications on Docker defined using the Compose file format. A Compose file is used to define how one or more containers that make up how the application is configured. Once a Compose file has been created, the application can be started with a single command: docker compose up.

Installation

USE flags

USE flags for app-containers/docker-compose Multi-container orchestration for Docker

test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)

Emerge

root #emerge --ask app-containers/docker-compose

Usage

Starting Docker Compose

To start Docker Compose with a file named docker-compose.yml in the current directory, run:

user $docker compose up