-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (86 loc) · 2.27 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3.5'
services:
noise-sink:
image: yomorun/noise-sink:latest
container_name: noise-sink
restart: always
# command can be ignored, use default settings.
command: ["sh", "-c", "go run main.go"]
ports:
# must expose the port
- "8000:8000"
networks:
- noisenet
noise-web:
image: yomorun/noise-web:latest
container_name: noise-web
restart: always
# command can be ignored, use default settings.
command: ["yarn", "start"]
environment:
# If not deployed locally, please fill in the IP address of the host computer.
- SOCKET_SERVER_ADDR=ws://localhost:8000
ports:
- "3000:3000"
links:
- noise-sink
depends_on:
- noise-sink
networks:
- noisenet
noise-flow:
image: yomorun/noise-flow:latest
container_name: noise-flow
restart: always
# command can be ignored, use default settings.
command: ["sh", "-c", "yomo run app.go -p 4242"]
networks:
- noisenet
noise-zipper:
image: yomorun/noise-zipper:latest
container_name: noise-zipper
restart: always
# command can be ignored, use default settings.
command: ["sh", "-c", "yomo wf run workflow.yaml"]
links:
- noise-flow
- noise-sink
depends_on:
- noise-flow
- noise-sink
networks:
- noisenet
noise-source:
image: yomorun/noise-source:latest
container_name: noise-source
restart: always
# command can be ignored, use default settings.
command: ["sh", "-c", "go run main.go"]
environment:
- YOMO_SOURCE_MQTT_ZIPPER_ADDR=noise-zipper:9999
- YOMO_SOURCE_MQTT_SERVER_ADDR=0.0.0.0:1883
links:
- noise-zipper
depends_on:
- noise-zipper
networks:
- noisenet
noise-emitter:
image: yomorun/noise-emitter:latest
container_name: noise-emitter
restart: always
# command can be ignored, use default settings.
command: ["sh", "-c", "go run main.go"]
environment:
- YOMO_SOURCE_MQTT_BROKER_ADDR=tcp://noise-source:1883
# This value sets the frequency of production data.
- YOMO_SOURCE_MQTT_PUB_INTERVAL=500
links:
- noise-source
depends_on:
- noise-source
networks:
- noisenet
networks:
noisenet:
driver: bridge