-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-novnc.yml
78 lines (76 loc) · 2.24 KB
/
docker-compose-novnc.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
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '2.4'
services:
# meant for running on a remote server without display. Doesn't work properly with hardware acceleration.
xserver:
image: devrt/xserver
# build:
# context: xserver
ipc: host
security_opt:
- seccomp:unconfined
ports:
- "3000:80"
healthcheck:
test: ["CMD-SHELL", "test -e /tmp/.X11-unix/X1"]
interval: "1s"
retries: 20
simulator:
image: ghcr.io/ngxingyu/simulator_uuv
ipc: host
privileged: true
security_opt:
- seccomp:unconfined
environment:
- DISPLAY=:0
- QT_X11_NO_MITSHM=1
- simulator_workspace:/home/developer/catkin_ws/ # persist the devel / install folder across sessions
- ../uuv_ws/src:/home/developer/catkin_ws/src
# - vrx_simulator_workspace:/home/developer/colcon_ws/ # persist the devel / install folder across sessions
# - ../vrx_ws/src:/home/developer/colcon_ws/src # bind-mount vrx workspace/
volumes_from:
- xserver
depends_on:
- xserver
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
# runtime: nvidia
## specify a command to run in the container
# command:
# - /bin/sh
# - -c
# - |
tty: true # to keep session alive
workspace:
# env_file:
# - .env
image: ghcr.io/ngxingyu/ros-devcontainer:noetic-dev
ipc: host
security_opt:
- seccomp:unconfined
ports:
- "3001:3000"
- "3002:8888"
volumes:
- auv_workspace:/workspace # persist the devel / install folder across sessions
- ../bbauv_ws/src:/workspace/src # bind-mount auv workspace/src folder
# - asv_workspace:/workspace # persist the devel / install folder across sessions
# - ../bbasv_ws/src:/workspace/src # bind-mount asv workspace/src folder
environment:
- DISPLAY=:0
- ROS_MASTER_URI=http://simulator:11311/
volumes_from:
- xserver
- simulator
depends_on:
- xserver
volumes: # docker volumes to persist build/devel across containers
# vrx_simulator_workspace:
simulator_workspace:
#lrauv_simulator_workspace:
# asv_workspace:
auv_workspace: