Skip to content

feat: add compose stack validation before container launch#15

Closed
boffin-dmytro wants to merge 1 commit intomainfrom
feat/compose-validation-preflight
Closed

feat: add compose stack validation before container launch#15
boffin-dmytro wants to merge 1 commit intomainfrom
feat/compose-validation-preflight

Conversation

@boffin-dmytro
Copy link
Copy Markdown
Owner

Summary

  • Validate Docker Compose configuration syntax before launching containers
  • Fail fast with clear error messages if compose files are invalid
  • Prevents cryptic failures during container startup

Rationale

Compose file errors (syntax errors, missing variables, invalid service definitions) cause cryptic failures during container launch. Validating the merged compose stack upfront catches these issues early and provides actionable error messages.

Changes

  • Run docker compose config --quiet to validate merged stack
  • Check validation before launching containers in phase 11
  • Provide clear error messages pointing to compose files and logs

Test Plan

  • Verify validation passes with valid compose files
  • Verify validation fails with syntax errors
  • Verify validation fails with missing required variables
  • Verify error messages are actionable

@boffin-dmytro
Copy link
Copy Markdown
Owner Author

Closing - will recreate against upstream repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant