---
paths:
  - "**/Dockerfile*"
  - "**/docker-compose*"
  - "**/.github/**"
  - "**/coolify*"
stacks:
  - docker
---

# Infrastructure Standards

@.morph/framework/standards/infrastructure/docker/coolify-deploy.md
@.morph/framework/standards/infrastructure/docker/local-compose-isolation.md
@.morph/framework/standards/infrastructure/docker/local-compose-isolation.md

## Infrastructure Templates

| Template | Path | Purpose |
|----------|------|---------|
| .NET API Dockerfile | `.morph/framework/templates/infrastructure/docker/dockerfile-api.dockerfile` | Multi-stage .NET |
| Next.js Dockerfile | `.morph/framework/templates/infrastructure/docker/dockerfile-web.dockerfile` | Multi-stage Next.js |
| Docker Compose | `.morph/framework/templates/infrastructure/docker/docker-compose.template.yml` | Local dev env — one isolated stack per worktree (ports from the block, no `container_name`) |
| Coolify Config | `.morph/framework/templates/infrastructure/docker/coolify.template.json` | Deployment config |
| .NET Build CI | `.morph/framework/templates/infrastructure/github/workflows/dotnet-build.yml.hbs` | CI workflow |
| Docker Push CI | `.morph/framework/templates/infrastructure/github/workflows/docker-build-push.yml.hbs` | Build & push |
| Deploy Coolify | `.morph/framework/templates/infrastructure/github/workflows/deploy-coolify.yml.hbs` | CD via SSH |

Read the template and adapt to your project structure.
