-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (119 loc) · 4.19 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '2'
services:
zyklio-nrp-backend-dev:
build:
context: .
dockerfile: backend.Dockerfile
args:
NRP_USER: fabian
NRP_NUM_PROCESSES: 4
NRP_CMAKE_BUILD_TYPE: 'Debug'
ROS_MASTER_URI: http://nrp-backend:11311
devices:
- /dev/nvidia0
- /dev/nvidiactl
- /dev/nvidia-uvm
- /dev/nvidia-uvm-tools
image: zyklio-nrp-backend-dev
hostname: nrp-backend
volumes:
- ./scripts/backend-start.sh:/usr/local/bin/backend-start.sh
- ./scripts/nrp_variables:/home/fabian/nrp/src/user-scripts/nrp_variables
- ./scripts/gzserver:/home/fabian/.opt/bbp/nrp-services/gzserver
- ./scripts/gzbridge:/home/fabian/.opt/bbp/nrp-services/gzbridge
- nvidia_driver_390.30:/usr/local/nvidia:ro
command: /usr/local/bin/backend-start.sh
environment:
ROS_MASTER_URI: http://nrp-backend:11311
networks:
nrp-local-network:
ipv4_address: 10.5.0.2
aliases:
- nrp-backend
zyklio-nrp-cle-dev:
build:
context: .
dockerfile: cle.Dockerfile
args:
NRP_USER: fabian
NRP_NUM_PROCESSES: 4
NRP_CMAKE_BUILD_TYPE: 'Debug'
ROS_MASTER_URI: http://nrp-backend:11311
devices:
- /dev/nvidia0
- /dev/nvidiactl
- /dev/nvidia-uvm
- /dev/nvidia-uvm-tools
depends_on:
- "zyklio-nrp-backend-dev"
image: zyklio-nrp-cle-dev
hostname: nrp-cle
volumes:
- ./scripts/cle-start.sh:/usr/local/bin/cle-start.sh
- ./scripts/nrp_variables:/home/fabian/nrp/src/user-scripts/nrp_variables
- ./scripts/gzserver:/home/fabian/.opt/bbp/nrp-services/gzserver
- ./scripts/gzbridge:/home/fabian/.opt/bbp/nrp-services/gzbridge
# - ./src/NRP:/home/faichele/nrp/src
- ./config/nginx/frontend.conf:/home/fabian/.local/etc/nginx/conf.d/frontend.conf
- ./config/nginx/nrp-services.conf:/home/fabian/.local/etc/nginx/conf.d/nrp-services.conf
- ./config/nginx/uwsgi-nrp.ini:/home/fabian/.local/etc/nginx/uwsgi-nrp.ini
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- nvidia_driver_390.30:/usr/local/nvidia:ro
command: /usr/local/bin/cle-start.sh
environment:
- ROS_MASTER_URI=http://nrp-backend:11311
- DISPLAY=:0
- QT_X11_NO_MITSHM=1
# network_mode: bridge
networks:
nrp-local-network:
ipv4_address: 10.5.0.3
aliases:
- nrp-cle
zyklio-nrp-frontend-dev:
build:
context: .
dockerfile: frontend.Dockerfile
args:
NRP_USER: fabian
NRP_NUM_PROCESSES: 4
NRP_CMAKE_BUILD_TYPE: 'Debug'
ROS_MASTER_URI: 'http://nrp-backend:11311'
devices:
- /dev/nvidia0
- /dev/nvidiactl
- /dev/nvidia-uvm
- /dev/nvidia-uvm-tools
depends_on:
- "zyklio-nrp-backend-dev"
- "zyklio-nrp-cle-dev"
image: zyklio-nrp-frontend-dev
hostname: nrp-frontend
volumes:
- ./scripts/frontend-start.sh:/usr/local/bin/frontend-start.sh
- ./scripts/nrp_variables:/home/fabian/nrp/src/user-scripts/nrp_variables
- ./scripts/gzserver:/home/fabian/.opt/bbp/nrp-services/gzserver
- ./scripts/gzbridge:/home/fabian/.opt/bbp/nrp-services/gzbridge
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- nvidia_driver_390.30:/usr/local/nvidia:ro
command: /usr/local/bin/frontend-start.sh
environment:
- ROS_MASTER_URI=http://nrp-backend:11311
- DISPLAY=:0
- QT_X11_NO_MITSHM=1
# network_mode: bridge
networks:
nrp-local-network:
ipv4_address: 10.5.0.4
aliases:
- nrp-frontend
networks:
nrp-local-network:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
volumes:
nvidia_driver_390.30:
external: true