-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
27 lines (25 loc) · 1.1 KB
/
docker-compose.yml
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
version: '3.7'
services:
realsense-ready:
container_name: orb-slam-3-container
image: lmwafer/orb-slam-3-ready:1.0-ubuntu18.04
restart: always
privileged: true
ports:
- "8087:8087" # Inherited from realsense-ready
environment:
- DISPLAY=$DISPLAY # Inherited from realsense-ready
- QT_X11_NO_MITSHM=1 # Inherited from realsense-ready
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # For orb-ready only, give access to X11
- ./app:/app:rw
- /dev:/dev:ro
stdin_open: true # For orb-ready only, equivalent to "docker run -i"
tty: true # For orb-ready only, equivalent to "docker run -t"
deploy: # For orb-ready only, in response to what(): Pangolin X11: Failed to create an OpenGL context
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0'] # This ID may change on different machines : `lshw -c display` for more info
capabilities: [gpu]