900 B
900 B
Infrastructure v2
Goals
- Modular stacks you can pick individually (Nextcloud, etc.)
- Unified reverse proxy (Traefik) with automatic TLS
- Clear env layering and git‑ignored secrets
- Simple Make targets for a smooth DX
Layout
- infra/core/traefik: Traefik compose + static/dynamic config
- infra/apps/: Self‑contained compose stacks and .env.example
- infra/env//common.env: Shared environment defaults per environment
- infra/secrets: Local secret files (ignored)
- scripts/infra/bootstrap.sh: Creates proxy network and ACME storage
Usage
- cp infra/env/development/common.env infra/env/development/common.env (adjust values)
- make bootstrap
- make proxy-up
- make app-up APP=nextcloud
Security
- Do not commit real secrets. Place them in local
.envfiles or secret managers. - Optionally protect Traefik dashboard with basic auth via
TRAEFIK_BASIC_AUTH_USERS.