Skip to content

CICD-125 · Validate expanded Compose configuration ​

Encyclopedia · Docker runtime and Compose · All snippets

Previous · CICD-124 · Next · CICD-126

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites disposable Docker or Compose project with example web service.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
docker compose config --quiet

3. How it works ​

Compose resolves inputs into a combined project configuration. Validation can catch missing variables before services start.

4. Verify the result ​

Run with non-secret sample environment values. Avoid printing expanded secrets.

Validation syntax-validated (Bash parse). Status definitions.