-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yaml
225 lines (210 loc) · 5.35 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
version: "3.9"
services:
rabbitmq:
image: rabbitmq:3.8-management
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USERNAME}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
ports:
- "${RABBITMQ_ADMIN_PORT}:15672"
expose:
- ${RABBITMQ_PORT}
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "${RABBITMQ_PORT}"]
interval: 5s
timeout: 15s
retries: 1
# --------------------------------- Services --------------------------------- #
automatic_speech_recognition:
container_name: automatic_speech_recognition
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.automatic_speech_recognition
volumes:
- ./ayesaac/services/automatic_speech_recognition:/app/ayesaac/services/automatic_speech_recognition
camera_manager:
container_name: camera_manager
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.camera_manager.main
volumes:
- ./ayesaac/services/camera_manager:/app/ayesaac/services/camera_manager
colour_detection:
container_name: colour_detection
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.colour_detection.main
volumes:
- ./ayesaac/services/colour_detection:/app/ayesaac/services/colour_detection
external_interface:
container_name: external_interface
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.external_interface
volumes:
- ./ayesaac/services/external_interface:/app/ayesaac/services/external_interface
- output_data:/app/output
interpreter:
container_name: interpreter
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.interpreter.main
volumes:
- ./ayesaac/services/interpreter:/app/ayesaac/services/interpreter
manager:
container_name: manager
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.manager.main
volumes:
- ./ayesaac/services/manager:/app/ayesaac/services/manager
natural_language_generator:
container_name: natural_language_generator
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.natural_language_generator.main
volumes:
- ./ayesaac/services/natural_language_generator:/app/ayesaac/services/natural_language_generator
- ./data/sentence_templates:/app/data/sentence_templates
natural_language_understanding:
container_name: natural_language_understanding
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.natural_language_understanding.main
volumes:
- ./ayesaac/services/natural_language_understanding:/app/ayesaac/services/natural_language_understanding
- ./data/rasa:/app/data/rasa
object_detection:
container_name: object_detection
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.object_detection.main
volumes:
- ./ayesaac/services/object_detection:/app/ayesaac/services/object_detection
- output_data:/app/output
optical_character_recognition:
container_name: optical_character_recognition
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.optical_character_recognition.main
volumes:
- ./ayesaac/services/optical_character_recognition:/app/ayesaac/services/optical_character_recognition
label_formatter:
container_name: label_formatter
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.label_formatter.main
volumes:
- ./ayesaac/services/label_formatter:/app/ayesaac/services/label_formatter
position_detection:
container_name: position_detection
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
command:
- python
- -u
- -m
- ayesaac.services.position_detection.main
volumes:
- ./ayesaac/services/position_detection:/app/ayesaac/services/position_detection
web:
container_name: web
image: ayesaac:latest
restart: always
depends_on:
- rabbitmq
env_file: .env
environment:
FLASK_APP: "./ayesaac/services/web/app.py"
ports:
- "${ENDPOINT_PORT}:5000"
command:
- flask
- run
- "--host=0.0.0.0"
volumes:
- ./ayesaac/services/web:/app/ayesaac/services/web
- output_data:/app/output
volumes:
output_data: