b9be45dc71
Complete IaC covering: - 14 roles: common, docker, traefik, vaultwarden, monitoring, media, matrix, home_assistant, frigate, adguard, gitea, semaphore, openclaw, security, backup - Inventory for all hosts (Peggy, Bart, Yoda, NAS, Firewalla) - Stack playbooks: core-infrastructure, monitoring, media, communication, automation, smarthome, security-hardening - Maintenance playbooks: update-containers, backup, health-check - Production Docker Compose templates with Traefik labels - Security hardening (sysctl, auditd, UFW, fail2ban) - Automated backups with retention policy
31 lines
905 B
Django/Jinja
31 lines
905 B
Django/Jinja
services:
|
|
frigate:
|
|
image: {{ frigate_image }}
|
|
container_name: frigate
|
|
restart: unless-stopped
|
|
privileged: true
|
|
shm_size: "256mb"
|
|
ports:
|
|
- "5000:5000"
|
|
- "8554:8554"
|
|
- "8555:8555/tcp"
|
|
- "8555:8555/udp"
|
|
volumes:
|
|
- {{ frigate_config_dir }}:/config
|
|
- {{ frigate_media_dir }}:/media/frigate
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
FRIGATE_RTSP_PASSWORD: "{{ vault_frigate_rtsp_password | default('changeme') }}"
|
|
labels:
|
|
traefik.enable: "true"
|
|
traefik.http.routers.frigate.rule: "Host(`{{ frigate_host }}`)"
|
|
traefik.http.routers.frigate.entrypoints: websecure
|
|
traefik.http.routers.frigate.tls.certresolver: cloudflare
|
|
traefik.http.services.frigate.loadbalancer.server.port: "5000"
|
|
networks:
|
|
- {{ docker_network_name }}
|
|
|
|
networks:
|
|
{{ docker_network_name }}:
|
|
external: true
|