Docker Compose
Compose file merging
Resolve files in listed order. Mapping entries can merge; sequence and special-field rules vary. Normal multi-file relative paths use the base file directory. Inspect the combined model before applying. Interpolation is performed per file before merging; inspect the resolved model.
Formal Syntax & Structure
docker syntaxdocker
docker compose -f BASE -f OVERRIDE configParameters & Attributes
| Name | Type | Description |
|---|---|---|
| BASE | string | Base file |
| OVERRIDE | string | Override fragment |
Working Example
Example Snippetdocker
docker compose -f compose.yaml -f review.yaml -p bm-v13-overrides config