Activates when working with homelab infrastructure — Docker Compose stacks, Traefik reverse proxy, DNS, backups, monitoring with Grafana/Prometheus, network isolation, and self-hosted service configuration
Organize services into logical stacks. Each stack gets its own directory with a docker-compose.yml and .env file.
/opt/homelab/
traefik/
docker-compose.yml
traefik.yml # Static config
dynamic/ # Dynamic config (file provider)
middlewares.yml
tls.yml
acme.json # TLS certificates (chmod 600)
.env
media/
docker-compose.yml
.env
monitoring/
docker-compose.yml
prometheus/
prometheus.yml
grafana/
provisioning/
.env
ai/
docker-compose.yml
.env
# docker-compose.yml