-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
26 lines (25 loc) · 914 Bytes
/
docker-compose.yaml
File metadata and controls
26 lines (25 loc) · 914 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
version: "3"
services:
ros:
# specify where the Dockerfile you want to build is
build: .
# allow using the terminal
tty: true
# gives the container access to any devices connected to the computer
privileged: true
# use the computer's networking stack
# necessary for two docker containers to be able to talk to each other in ROS2
network_mode: "host" # this
pid: "host"
volumes:
- ./crazyswarm:/root/crazyswarm
# - ~/crazier-workspace/crazyswarm2-setup/colcon_ws:/root/colcon_ws
- /tmp/.X11-unix:/tmp/.X11-unix
- ./99-bitcraze.rules:/etc/udev/rules.d/99-bitcraze.rules
- /dev:/dev
environment:
# specify the display drivers
- SHORT=ros_ws/src/crazyswarm/scripts/
- DISPLAY=$DISPLAY
# if you want to specify a ros domain id (or other environment parameters) this is a good place
# - ROS_DOMAIN_ID=2