frigate: Initial version of role
This commit is contained in:
parent
cb0d0a949d
commit
cb7ca70d16
6 changed files with 139 additions and 0 deletions
19
roles/frigate/templates/frigate-container.service.j2
Normal file
19
roles/frigate/templates/frigate-container.service.j2
Normal file
|
@ -0,0 +1,19 @@
|
|||
[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 \
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue