Skip to content
masterclass Buddy

Docker · Directive

USER

Docker Compose services describe the containers that make up an application. Each named service uses shared image and runtime settings, and can define ports, environment variables, storage, dependencies, health checks, and image builds.

Last updated

Syntax

services:
  SERVICE_NAME:
    image: IMAGE
    # service options

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • build
  • container_name
  • depends_on
  • environment
  • expose
  • healthcheck
  • image
  • labels

Source: Define services in Docker Compose. Checked 2026-11-03.