ansible/roles/frigate/templates/frigate-container.service.j2

20 lines
595 B
Django/Jinja

[Unit]
Description=Frigate Container
Wants=network-online.target
After=network-online.target
[Service]
User=frigate
ExecStart=/usr/bin/podman run \
--rm -p 127.0.0.1:8007:5000 \
--name frigate \
--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 \
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