-
-
Notifications
You must be signed in to change notification settings - Fork 415
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (52 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
53 lines (52 loc) · 1.63 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
42
43
44
45
46
47
48
49
50
51
52
53
services:
dev:
build:
context: .
dockerfile: Dockerfile
target: development
args:
USERNAME: ${USERNAME:-aravis}
DISTRO_NAME: ${DISTRO_NAME:-trixie}
BASE_IMAGE: ${BASE_IMAGE:-debian:trixie}
ARAVIS_VERSION: ${ARAVIS_VERSION:-0.9.1}
ARAVIS_SOURCE_MODE: ${ARAVIS_SOURCE_MODE:-release}
environment:
USERNAME: ${USERNAME:-aravis}
DISPLAY: ${DISPLAY:-:0}
network_mode: host
pid: host
ipc: host
privileged: true # Required for USB camera access
volumes:
- .:/workspace
- /tmp/.X11-unix:/tmp/.X11-unix:cached
- /dev/dri:/dev/dri:cached
- $HOME/.Xauthority:/root/.Xauthority:ro
# Mount USB devices for camera access
- /dev/bus/usb:/dev/bus/usb
# Share udev rules from host (host device needs to be pre-configured with appropriate udev rules)
- /etc/udev/rules.d:/etc/udev/rules.d:ro
command: sleep infinity
viewer:
build:
context: .
dockerfile: Dockerfile
target: viewer
args:
DISTRO_NAME: ${DISTRO_NAME:-trixie}
BASE_IMAGE: ${BASE_IMAGE:-debian:trixie}
ARAVIS_VERSION: ${ARAVIS_VERSION:-0.9.1}
ARAVIS_SOURCE_MODE: ${ARAVIS_SOURCE_MODE:-release}
environment:
DISPLAY: ${DISPLAY:-:0}
network_mode: host
pid: host
ipc: host
privileged: true # Required for USB camera access
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:cached
- /dev/dri:/dev/dri:cached
- $HOME/.Xauthority:/root/.Xauthority:ro
# Mount USB devices for camera access
- /dev/bus/usb:/dev/bus/usb
- /etc/udev/rules.d:/etc/udev/rules.d:ro