-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
70 lines (64 loc) · 1.4 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.9'
services:
master:
build:
context: ./
target: ros_base
container_name: ros-master
ports:
- "11311:11311"
- "33690:33690"
environment:
- "ROS_MASTER_URI=http://localhost:11311"
command: stdbuf -o L roscore
networks:
- ros
talker:
build:
context: ./
target: ros_base
container_name: ros-talker
depends_on:
- master
environment:
- "ROS_MASTER_URI=http://${MASTER_HOSTNAME:-master}:11311"
- "ROS_HOSTNAME=talker"
command: stdbuf -o L rostopic pub /chatter std_msgs/String "hello" -r 1
networks:
- ros
listener:
build:
context: ./
target: ros_base
container_name: ros-listener
depends_on:
- master
environment:
- "ROS_MASTER_URI=http://${MASTER_HOSTNAME:-master}:11311"
- "ROS_HOSTNAME=listener"
command: stdbuf -o L rostopic echo /chatter
networks:
- ros
dev:
build:
context: ./
target: ros_dev
container_name: ros-dev
depends_on:
- master
environment:
- "ROS_MASTER_URI=http://${MASTER_HOSTNAME:-master}:11311"
- "ROS_HOSTNAME=dev"
ports:
- "6080:6080"
# cap_add:
# - "NET_ADMIN"
# - "NET_BROADCAST"
volumes:
- ./workspaces/:/workspaces/
command: bash -c "/start_novnc.sh"
networks:
- ros
networks:
ros:
driver: bridge