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 optionsIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
buildcontainer_namedepends_onenvironmentexposehealthcheckimagelabels