-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
39 lines (33 loc) · 988 Bytes
/
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
version: "3.8"
services:
ros2:
build:
context: docker/ros2
args:
- user_id=1000
- ros_ws=/home/dockeruser/dev_ws
# Enabling GPU access with Compose
# https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - capabilities: [gpu]
# count: all
environment:
# Set a fancy prompt (See ~/.bashrc in the container)
- TERM=xterm-256color
# WSLg settings
# https://www.reddit.com/r/bashonubuntuonwindows/comments/n2nthu/can_i_use_the_new_wslg_with_docker/
- DISPLAY
- WAYLAND_DISPLAY
- XDG_RUNTIME_DIR
- PULSE_SERVER
volumes:
- ./:/home/dockeruser/project
- ./dev_ws:/home/dockeruser/dev_ws
- ./docker/ros2/.ros:/home/dockeruser/.ros
- ./docker/ros2/.gazebo/:/home/dockeruser/.gazebo
# WSLg settings
- /mnt/wslg:/mnt/wslg
- /tmp/.X11-unix:/tmp/.X11-unix