Simplified monorepo with docker compose for local development, CI and production
Docker Compose is often treated as a “local-only” tool, while CI pipelines reimplement the same logic with custom scripts and duplicated image definitions. That duplication causes drift, surprises, and unnecessary complexity. Using multi-stage Dockerfiles combined with build targets selected via environment variables, Docker Compose can become the single source of truth for: local development production-like local testing CI build CI push No separate compose files. No duplicated CI job definitions per image. ...