Archived
Consolidates nixos, docker, raspi, and debian-configuration into a single infrastructure-as-code repo. Includes: - ansible/: full inventory + proxmox-hardening, freeipa, and raspberrypi roles (converted from debian-configuration bash scripts) - terraform/: Proxmox VMs, Dynu DNS, Pi-hole (decommissioned stub), Docker container catalog — migrated from docker/infrastructure/terraform/ - stacks/docker/, stacks/raspi/, nixos/: placeholder READMEs pending git subtree population (see implementation plan) - docs/: internal MkDocs site with architecture, network topology, runbooks, and drift-detection guide; external sanitized site - scripts/: drift-detect.sh, docs-build.sh, install-hooks.sh, check-secrets.sh - CI: secret-scan (push/PR), drift-detect (daily), docs-build (on change) - Pi-hole removed throughout — DNS is FreeIPA, DHCP is router See docs/internal/implementation-plan.md for the phased rollout after pushing to Gitea. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UvNjoxTWEDkhXsd1Dq2ETP
70 lines
1.4 KiB
Terraform
70 lines
1.4 KiB
Terraform
resource "docker_container" "traefik" {
|
|
name = local.docker_containers["traefik"].container_name
|
|
image = local.docker_containers["traefik"].image
|
|
|
|
restart = local.docker_containers["traefik"].restart_policy
|
|
|
|
network_mode = "core_traefik"
|
|
|
|
ports {
|
|
internal = 80
|
|
external = 80
|
|
protocol = "tcp"
|
|
}
|
|
|
|
ports {
|
|
internal = 443
|
|
external = 443
|
|
protocol = "tcp"
|
|
}
|
|
|
|
mounts {
|
|
type = "bind"
|
|
source = "/home/nixos/docker/core/traefik/data/letsencrypt"
|
|
target = "/letsencrypt"
|
|
read_only = false
|
|
}
|
|
|
|
mounts {
|
|
type = "bind"
|
|
source = "/home/nixos/docker/core/traefik/data/logs"
|
|
target = "/logs"
|
|
read_only = false
|
|
}
|
|
|
|
mounts {
|
|
type = "bind"
|
|
source = "/home/nixos/docker/core/traefik/certs"
|
|
target = "/etc/traefik/certs"
|
|
read_only = true
|
|
}
|
|
|
|
mounts {
|
|
type = "bind"
|
|
source = "/home/nixos/docker/core/traefik/dynamic.yml"
|
|
target = "/etc/traefik/dynamic.yml"
|
|
read_only = true
|
|
}
|
|
|
|
mounts {
|
|
type = "bind"
|
|
source = "/home/nixos/docker/core/traefik/traefik.yml"
|
|
target = "/etc/traefik/traefik.yml"
|
|
read_only = true
|
|
}
|
|
|
|
mounts {
|
|
type = "bind"
|
|
source = "/home/nixos/docker/core/traefik/data/plugins"
|
|
target = "/plugins-storage"
|
|
read_only = false
|
|
}
|
|
|
|
lifecycle {
|
|
ignore_changes = [
|
|
env,
|
|
labels,
|
|
]
|
|
}
|
|
}
|