-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.26 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
54
55
# services:
# openrave:
# # build: .
# image: lamp:latest
# privileged: true
# tty: true
# network_mode: "host"
# environment:
# - DISPLAY=${DISPLAY}
# - NVIDIA_DISABLE_REQUIRE=1
# - NVIDIA_VISIBLE_DEVICES=all
# - NVIDIA_DRIVER_CAPABILITIES=all
# # user: 1000:1000
# volumes:
# - /tmp/.X11-unix:/tmp/.X11-unix
# - ${HOME}/.Xauthority:/root/.Xauthority
# runtime: nvidia
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
version: '2'
services:
novnc:
image: theasp/novnc:latest
environment:
# Adjust to your screen size
- DISPLAY_WIDTH=1920
- DISPLAY_HEIGHT=1080
- RUN_XTERM=no
ports:
- 8080:8080 #host_port:container_port
openrave:
# build: .
image: lamp:latest
environment:
- DISPLAY=novnc:0.0
# - NVIDIA_DISABLE_REQUIRE=1
# - NVIDIA_VISIBLE_DEVICES=all
# - NVIDIA_DRIVER_CAPABILITIES=all
# user: 1000:1000
depends_on:
- novnc
tty: true
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ${HOME}/.Xauthority:/root/.Xauthority
- ${PWD}:/workspaces/LAMP
working_dir: /workspaces/LAMP/