-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 858 Bytes
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
services:
ros2_ws:
build:
context: .
dockerfile: docker/Dockerfile
image: ros2_ws:humble
container_name: ros2_ws
stdin_open: true
tty: true
network_mode: host
environment:
- DISPLAY=${DISPLAY}
- ROS_DOMAIN_ID=0
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
volumes:
- .:/ros2_ws
- ./secrets:/root/spot_configs:ro
- /tmp/.X11-unix:/tmp/.X11-unix:rw
command: /bin/bash
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
zenoh_router:
image: eclipse/zenoh:latest
container_name: zenoh_router
network_mode: host
volumes:
- ./zenoh-config.json5:/config.json5
command:
-c /config.json5
restart: unless-stopped