Compose file

The YAML file, usually compose.yaml, that lists the services, networks and volumes of an application.

In more detail

Each entry under services says which image to run or build, which ports to publish, which environment variables and volumes to use, and what it depends on. Keep secrets out of it; reference secret files or environment files instead.

Example

services:
  api:
    build: .
    ports: ["18080:8000"]

Related terms

Taught in

References