CICD-126 · Build Compose services
Encyclopedia · Docker runtime and Compose · All snippets
Previous · CICD-125 · Next · CICD-127
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 build --pull web worker3. How it works
Compose builds the images of the named services. --pull refreshes referenced bases when resolving the build, and the resulting tags belong to the selected project configuration.
4. Verify the result
Requires corresponding services in compose.yaml. Inspect project-generated image tags.
Validation syntax-validated (Bash parse). Status definitions.