# @mintel/infra

Production-ready infrastructure templates for Mintel client websites, optimized for Hetzner, Traefik, and Gitea Actions.

## 📦 Contents

### `docker/`
- **`Dockerfile.nextjs`**: A multi-stage build optimized for Next.js standalone output. Supports build-time ARGs for Umami and Base URL.
- **`docker-compose.template.yml`**: A Traefik-ready compose file with automatic HTTPS redirection, security headers, and network isolation.

### `gitea/`
- **`deploy-action.yml`**: A high-transparency deployment workflow.
  - **Testing**: Automatic deploy on push to `main`.
  - **Staging**: Deploy via `v*-rc.*` tags.
  - **Production**: Deploy via `v*.*.*` tags.
  - **Features**: Gotify notifications, health checks, and automatic `.env` generation.

## 🚀 Usage

These templates are automatically injected into new projects by the [`@mintel/cli`](../cli/README.md). If you need to update an existing project, you can manually copy them from this package.
