1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-05-13 22:06:55 +02:00

add moonfire-nvr

This commit is contained in:
kev 2025-05-08 19:05:58 +08:00
parent 70a3f3cd32
commit c24cc7ce0f
6 changed files with 41 additions and 0 deletions

View File

@ -445,6 +445,7 @@ A collection of delicious docker recipes.
- [x] metasploitframework/metasploit-framework :skull:
- [x] minio/minio
- [x] mongo :bucket:
- [x] ghcr.io/scottlamb/moonfire-nvr
- [x] ccrisan/motioneye
- [x] ghcr.io/kitabisa/mubeng
- [x] n8nio/n8n

17
moonfire-nvr/README.md Normal file
View File

@ -0,0 +1,17 @@
moonfire-nvr
============
[Moonfire NVR][1] is an open-source security camera network video recorder.
## up and running
```bash
$ mkdir -p data/{etc,var,tmp}
$ chown -R 1000:1000 data
$ docker compose run --rm moonfire-nvr init
$ docker compose run --rm moonfire-nvr config
$ docker compose up -d
$ open http://127.0.0.1:8080/
```
[1]: https://github.com/scottlamb/moonfire-nvr

View File

@ -0,0 +1,7 @@
[[binds]]
ipv4 = "0.0.0.0:8080"
allowUnauthenticatedPermissions = { viewVideo = true }
[[binds]]
unix = "/var/lib/moonfire-nvr/sock"
ownUidIsPrivileged = true

View File

View File

View File

@ -0,0 +1,16 @@
services:
moonfire-nvr:
image: ghcr.io/scottlamb/moonfire-nvr:v0.7.21
command: ["run", "-c", "/etc/moonfire-nvr/moonfire-nvr.toml"]
ports:
- "8080:8080"
volumes:
- ./data/etc:/etc/moonfire-nvr
- ./data/var:/var/lib/moonfire-nvr
- ./data/tmp:/var/tmp
- /usr/share/zoneinfo:/usr/share/zoneinfo:ro
user: "1000:1000"
environment:
- TZ=Asia/Shanghai
- RUST_BACKTRACE=1
restart: unless-stopped