[Unit] Description=Frigate Container Wants=network-online.target After=network-online.target [Service] User=frigate EnvironmentFile=/etc/sysconfig/frigate-container ExecStart=/usr/bin/podman run \ --rm -p 127.0.0.1:8007:5000 \ --name frigate \ --volume {{ tls_certs }}/ca.crt:/etc/ssl/certs/ca.crt:ro \ --volume {{ tls_certs }}/{{ inventory_hostname }}.crt:/etc/ssl/certs/{{ inventory_hostname }}.crt:ro \ --volume {{ tls_private }}/frigate.key:/etc/ssl/private/{{ inventory_hostname }}.key:ro \ --volume /srv/frigate/config:/config:rw \ --volume /etc/frigate.yml:/config/config.yml:ro \ --volume /srv/frigate/media:/media/frigate:rw \ --volume /dev/bus/usb:/dev/bus/usb:rw \ --shm-size 1024M \ --env=FRIGATE_* ghcr.io/blakeblackshear/frigate:{{ frigate_version }} ExecStop=/usr/bin/podman stop --ignore frigate ExecStopPost=/usr/bin/podman rm -f --ignore frigate [Install] WantedBy=multi-user.target