-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (47 loc) · 1.22 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.9"
services:
ros2_mod1:
build:
context: ./ros_demo_module1/docker
dockerfile: Dockerfile
image: demo_env1:latest
container_name: mod1
privileged: true
volumes:
- ./ros_demo_module1/src:/root/ros2_ws/src
tty: true
environment:
- DISPLAY
- ROS_DOMAIN_ID=42
networks:
ros_demo_network:
ipv4_address: 172.69.0.2
ports:
- "8765:8765"
# UNCOMMENT ENTRYPOINT IF: you don't want the ROS packages launch automatically at container startup
# entrypoint: ["tail", "-f", "/dev/null"]
ros2_mod2:
build:
context: ./ros_demo_module2/docker
dockerfile: Dockerfile
image: demo_env2:latest
container_name: mod2
privileged: true
volumes:
- ./ros_demo_module2/src:/root/ros2_ws/src
tty: true
environment:
- DISPLAY
- ROS_DOMAIN_ID=42
networks:
ros_demo_network:
ipv4_address: 172.69.0.3
# UNCOMMENT ENTRYPOINT IF: you don't want the ROS packages launch automatically at container startup
# entrypoint: ["tail", "-f", "/dev/null"]
networks:
ros_demo_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.69.0.0/16