-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (32 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (32 loc) · 1.03 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
35
36
37
38
39
40
41
version: "3.8"
services:
sourcebox-sentry-cloudnode:
build: .
image: sourcebox-sentry-cloudnode:latest
container_name: sourcebox-sentry-cloudnode
# Required for USB camera access
privileged: true
# USB device passthrough
# Add additional cameras as needed
devices:
- /dev/video0:/dev/video0
# - /dev/video1:/dev/video1
environment:
- SOURCEBOX_SENTRY_NODE_ID=${SOURCEBOX_SENTRY_NODE_ID:?Node ID required}
- SOURCEBOX_SENTRY_API_KEY=${SOURCEBOX_SENTRY_API_KEY:?API key required}
- SOURCEBOX_SENTRY_API_URL=${SOURCEBOX_SENTRY_API_URL:-http://host.docker.internal:8000}
- RUST_LOG=${RUST_LOG:-info}
volumes:
# Persist recordings/snapshots
- ./data:/app/data
ports:
- "8080:8080"
restart: unless-stopped
# Use host network for mDNS discovery (alternative to ports)
# network_mode: host
# Log configuration
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"