-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
33 lines (32 loc) · 971 Bytes
/
docker-compose.yaml
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
version: "3.9"
x-logging:
&x-logging
options:
max-size: 50m
max-file: "1"
driver: json-file
x-restart: &x-restart "unless-stopped"
x-stop-grace-period: &x-stop-grace-period "3s"
services:
ros2-data-collection:
image: minipada/ros2_data_collection:humble-source-sim
privileged: true
container_name: ros2-data-collection
environment:
- QT_X11_NO_MITSHM=1
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility,display
- DISPLAY=unix$DISPLAY
- XAUTHORITY=$XAUTHORITY
volumes:
- ${HOME}/.Xauthority:/root/.Xauthority
- /tmp/.X11-unix:/tmp/.X11-unix
- /var/run/docker.sock:/var/run/docker.sock
- ${PWD}:/root/ros2_data_collection/src/ros2_data_collection
network_mode: "host"
logging: *x-logging
restart: *x-restart
stop_grace_period: *x-stop-grace-period
runtime: nvidia
command: tail -F anything
working_dir: /root/ros2_data_collection