Run frigate & nginx inside of container as user 'frigate' and allow a way to set the uid and gid of this user to better facilitate network storage mounts.

This commit is contained in:
Ilya Rakhlin
2021-08-14 16:46:48 -04:00
committed by Ilya Rakhlin
parent 1f1a708388
commit 6b462e482c
11 changed files with 55 additions and 30 deletions
+4
View File
@@ -57,6 +57,8 @@ services:
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "password"
PUID: 1000 # uid for frigate process
PGID: 1000 # gid for frigate process
```
If you can't use docker compose, you can run the container with something similar to this:
@@ -72,6 +74,8 @@ docker run -d \
-v <path_to_config_file>:/config/config.yml:ro \
-v /etc/localtime:/etc/localtime:ro \
-e FRIGATE_RTSP_PASSWORD='password' \
-e PUID=1000 \
-e PGID=1000 \
-p 5000:5000 \
-p 1935:1935 \
blakeblackshear/frigate:<specify_version_tag>