-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
68 lines (63 loc) · 1.88 KB
/
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
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
version: "3"
name: fogros2-sgc-lite
services:
rib:
image: redislabs/redismod
ports:
- '8002:6379' # use 8002 for public interface of redis
signal:
restart: always
build:
context: ./
dockerfile: ./Dockerfile
ports:
- '8000:8000' # use 8000 for public interface of signaling server
command: >
/signaling_server
redisinsight:
restart: always
image: redislabs/redisinsight:latest
ports:
- '8001:8001' # use 8002 for public interface of redis insight
talker:
restart: always
build:
context: ./
dockerfile: ./Dockerfile
volumes:
- "./src:/src"
- "./scripts:/scripts"
depends_on:
- rib
- signal
# deploy:
# replicas: 2
environment:
SGC_CONFIG: "automatic-docker.toml"
RMW_IMPLEMENTATION: "rmw_cyclonedds_cpp"
CYCLONEDDS_URI: "file:///fog_ws/cyclonedds.ubuntu.2204.xml"
command: >
bash -c "source /opt/ros/humble/setup.bash;
ros2 run demo_nodes_py talker &
/gdp-router router"
listener:
restart: always
build:
context: ./
dockerfile: ./Dockerfile
volumes:
- "./src:/src"
- "./scripts:/scripts"
depends_on:
- rib
- signal
environment:
SGC_CONFIG: "automatic-docker.toml"
RMW_IMPLEMENTATION: "rmw_cyclonedds_cpp"
CYCLONEDDS_URI: "file:///fog_ws/cyclonedds.ubuntu.2204.xml"
# TODO: this is a hack to make sure the subscriber is started after the publisher
# will also test the scenario that is opposite
command: >
bash -c "source /opt/ros/humble/setup.bash;
ros2 run demo_nodes_py listener &
/gdp-router router"