forked from ricardochavezt/the-bot-of-wall-street
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (137 loc) · 3.01 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "3.6"
services:
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto-stb
restart: always
volumes:
- ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mosquitto/data/:/mosquitto/data
networks:
se4as-network:
ipv4_address: 173.30.0.100
ports:
- "1883:1883"
- "9001:9001"
influxdb:
image: influxdb:2.4-alpine
container_name: influxdb-stb
restart: always
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=se4as_token
- DOCKER_INFLUXDB_INIT_ORG=se4as
- DOCKER_INFLUXDB_INIT_BUCKET=stocks
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=admin123
ports:
- "8086:8086"
volumes:
- influxdb_data:/var/lib/influxdb
networks:
se4as-network:
ipv4_address: 173.30.0.101
managed_resources:
container_name: managed-resources-stb
build:
context: ./managedResources/
dockerfile: ./Dockerfile
volumes:
- ./managedResources/:/usr/src/app/
restart: always
ports:
- "8000:8000"
networks:
se4as-network:
ipv4_address: 173.30.0.102
depends_on:
- mosquitto
links:
- influxdb
frontend:
container_name: frontend-stb
build:
context: ./dashboard/
dockerfile: ./Dockerfile
volumes:
- ./dashboard/:/usr/src/app/
restart: always
depends_on:
- managed_resources
ports:
- "5001:5001"
networks:
se4as-network:
ipv4_address: 173.30.0.103
monitor:
container_name: monitor-stb
build:
context: ./monitor/
dockerfile: ./Dockerfile
volumes:
- ./monitor/:/usr/src/app/
restart: always
networks:
se4as-network:
ipv4_address: 173.30.0.104
depends_on:
- mosquitto
- managed_resources
links:
- influxdb
analyzer:
container_name: analyzer-stb
build:
context: ./analyzer/
dockerfile: ./Dockerfile
volumes:
- ./analyzer/:/usr/src/app/
restart: always
networks:
se4as-network:
ipv4_address: 173.30.0.105
depends_on:
- mosquitto
- influxdb
links:
- influxdb
planner:
container_name: planner-stb
build:
context: ./planner/
dockerfile: ./Dockerfile
volumes:
- ./planner/:/usr/src/app/
restart: always
networks:
se4as-network:
ipv4_address: 173.30.0.106
depends_on:
- mosquitto
- influxdb
links:
- influxdb
executor:
container_name: executor-stb
build:
context: ./executor/
dockerfile: ./Dockerfile
volumes:
- ./executor/:/usr/src/app/
restart: always
networks:
se4as-network:
ipv4_address: 173.30.0.107
depends_on:
- mosquitto
- influxdb
links:
- influxdb
volumes:
influxdb_data: {}
networks:
se4as-network:
driver: bridge
ipam:
config:
- subnet: 173.30.0.0/16