Files
ansible-homelab/roles/frigate/templates/docker-compose.yml.j2
T
pluto b9be45dc71 Initial Ansible automation for hobbs.farm infrastructure
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
2026-02-01 23:14:46 -06:00

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