Docker Compose

Compose service profiles

Associate optional services with profiles. Enable via --profile or COMPOSE_PROFILES; explicitly targeting a service activates it for the operation. Not an authorization mechanism. Check all project containers including stopped ones when establishing absence.

Formal Syntax & Structure

docker syntaxdocker
profiles: [NAME]

Parameters & Attributes

NameTypeDescription
NAMEstringProfile name

Working Example

Example Snippetdocker
profiles: [tools]
Docker Reference