warningCONTAINER_NAME_SCALEweb
container_name conflicts with scaling
A fixed container_name prevents scaling the service (`docker compose up --scale`).
$.services.web.container_name
web-fixed
Remove container_name if you need scale.
Example:
```yaml
# remove container_name to allow scale:
# container_name: web-fixed
deploy:
replicas: 2
```
infoINTERPOLATION_PRESENTapi
Variable interpolation
Found ${VAR} / $VAR. The browser cannot resolve host env — not an error; use `docker compose config` locally.
$.services.api.image
${API_IMAGE:-ghcr.io/example/api:latest}infoDEPENDS_ON_ORDER_ONLYweb
depends_on is start order, not readiness
"api": depends_on only controls start order, not readiness (accepting connections). The config is not necessarily broken.
$.services.web.depends_on
api
If readiness matters — healthcheck + condition: service_healthy.
Example:
```yaml
depends_on:
postgres:
condition: service_healthy
# + healthcheck on postgres
```
hintINTERPOLATION_DEFAULTS
Interpolation with defaults
Uses ${VAR:-default} and/or ${VAR-default}. Defaults are visible in the file; avoid putting secrets in defaults.
$
API_IMAGE
hintEXTERNAL_NETWORK_UNVERIFIED
external network — not verified in browser
Network is marked external. Existence on the Docker host is not checked here.
$.networks.backend
backend