-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
96 lines (78 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
96 lines (78 loc) · 1.85 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
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
# ----------------------------------------------
# Made by Genis
# Modified by Abraham1501
# ----------------------------------------------
services:
navpilot:
build:
context: .
dockerfile: Dockerfile
image: sdv_image
container_name: sdv_container
dns:
- 1.1.1.1
- 1.0.0.1
- 8.8.8.8
environment:
- DISPLAY=${DISPLAY:-:0}
volumes:
- ./workspace:/workspace
- ./scripts:/workspace/scripts
- ./setup.sh:/workspace/setup.sh
- ./launch.sh:/workspace/launch.sh
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- /dev:/dev
ports:
- "8765:8765"
tty: true
stdin_open: true
privileged: true
security_opt:
- seccomp:unconfined
shm_size: 40g
networks:
default: {}
#lidar_net:
# ipv4_address: 192.168.1.50 # static IP for LiDAR access
networks:
default:
driver: bridge
lidar_net:
driver: macvlan
driver_opts:
parent: enp2s0
ipam:
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1
# ------> when using nvidia gpu
# services:
# navpilot:
# build:
# context: .
# dockerfile: Dockerfile
# image: navpilot_image
# container_name: navpilot_container
# deploy:
# resources:
# reservations:
# devices:
# - capabilities: ["gpu"]
# runtime: nvidia
# environment:
# - NVIDIA_VISIBLE_DEVICES=all
# - NVIDIA_DRIVER_CAPABILITIES=compute,utility,video,graphics,display
# - DISPLAY=${DISPLAY:-:0}
# - OPEN3D_RENDERING_BACKEND=glsl
# volumes:
# - ./workspace:/workspace
# - /tmp/.X11-unix:/tmp/.X11-unix:rw
# - /dev:/dev
# ports:
# - "8765:8765"
# tty: true
# stdin_open: true
# privileged: true
# security_opt:
# - seccomp:unconfined
# shm_size: 40g