forked from skyformat99/example-noise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-edge.yml
46 lines (41 loc) · 1.02 KB
/
docker-compose-edge.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
version: '3.5'
services:
noise-web:
image: yomorun/noise-web:latest
container_name: noise-web
restart: always
command: ["yarn", "start"]
environment:
- SOCKET_SERVER_ADDR=ws://localhost:8000
ports:
- "3000:3000"
networks:
- edgenet
noise-source:
image: yomorun/noise-source:latest
container_name: noise-source
restart: always
command: ["sh", "-c", "go run main.go"]
environment:
# set your host ip on cloud
- YOMO_SOURCE_MQTT_ZIPPER_ADDR=192.168.108.120:9999
- YOMO_SOURCE_MQTT_SERVER_ADDR=0.0.0.0:1883
networks:
- edgenet
noise-emitter:
image: yomorun/noise-emitter:latest
container_name: noise-emitter
restart: always
command: ["sh", "-c", "go run main.go"]
environment:
- YOMO_SOURCE_MQTT_BROKER_ADDR=tcp://noise-source:1883
- YOMO_SOURCE_MQTT_PUB_INTERVAL=500
links:
- noise-source
depends_on:
- noise-source
networks:
- edgenet
networks:
edgenet:
driver: bridge