-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (75 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
82 lines (75 loc) · 1.37 KB
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
version: "3.9"
services:
mqtt:
image: eclipse-mosquitto:2
container_name: mqtt
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
edge1:
build: ./edge
container_name: edge1
environment:
- EDGE_ID=edge1
- MQTT_HOST=mqtt
- MQTT_PORT=1883
depends_on:
- mqtt
deploy:
resources:
limits:
cpus: '0.5'
memory: 64M
edge2:
build: ./edge
container_name: edge2
environment:
- EDGE_ID=edge2
- MQTT_HOST=mqtt
- MQTT_PORT=1883
depends_on:
- mqtt
deploy:
resources:
limits:
cpus: '0.5'
memory: 128M
edge3:
build: ./edge
container_name: edge3
environment:
- EDGE_ID=edge3
- MQTT_HOST=mqtt
- MQTT_PORT=1883
depends_on:
- mqtt
deploy:
resources:
limits:
cpus: '0.5'
memory: 128M
fog:
build: ./fog
container_name: fog
environment:
- MQTT_HOST=mqtt
- MQTT_PORT=1883
depends_on:
- mqtt
deploy:
resources:
limits:
cpus: '1'
memory: 512M
cloud:
build: ./cloud
container_name: cloud
ports:
- "8501:8501"
environment:
- MQTT_HOST=mqtt
- MQTT_PORT=1883
depends_on:
- mqtt