-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
services:
camera-agent:
build: .
restart: unless-stopped
env_file: .env
environment:
OUTPUT_DIR: /output # override the ./output default from .env to use the bind-mount path
ports:
- "5174:5174" # web dashboard
volumes:
# Camera config — writable so the web UI can hot-reload it
- ./config.yaml:/app/config.yaml
# In-progress chunks (named volume, ephemeral)
- camera_tmp:/tmp/vybe-camera-agent
# Locally stored chunks — bind-mounted so files are accessible on the host under ./output/
- ./output:/output
# All host video devices (Linux only). Pick the right /dev/videoN from the
# dashboard's "Scan USB" button — hot-plugged devices appear on the next
# rescan without restarting the container. Paired with `privileged: true`
# below to bypass Docker's default cgroup device filter.
- /dev:/dev
# Grants full host device access — required for dynamic /dev/video* via the
# bind mount above. See docker-compose.site.yml for a similar setup on-site.
privileged: true
# On Linux: uncomment to share the host's network stack so RTSP cameras
# on your LAN are reachable exactly as they are from the host machine.
# When enabled, the ports: mapping above is ignored (not needed).
# See docker-compose.host-network.yml for an override-file alternative.
# network_mode: host
volumes:
camera_tmp: