-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
193 lines (191 loc) · 4.17 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
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
version: '3.9'
services:
app:
platform: linux/amd64
build:
context: .
args:
- PRESTO_PORT=${PRESTO_PORT}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
- S3_ENDPOINT=${S3_ENDPOINT}
- QUEUE_SUFFIX=${QUEUE_SUFFIX}
- OTEL_SERVICE_NAME=${OTEL_SERVICE_NAME}
- OTEL_EXPORTER_OTLP_PROTOCOL=${OTEL_EXPORTER_OTLP_PROTOCOL}
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT}
- OTEL_EXPORTER_OTLP_HEADERS=${OTEL_EXPORTER_OTLP_HEADERS}
- HONEYCOMB_API_KEY=${HONEYCOMB_API_KEY}
- HONEYCOMB_API_ENDPOINT=${HONEYCOMB_API_ENDPOINT}
- REDIS_URL=${REDIS_URL}
- CACHE_DEFAULT_TTL=${CACHE_DEFAULT_TTL}
env_file:
- ./.env_file
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
links:
- elasticmq
volumes:
- ./:/app
ports:
- "8000:8000"
environment:
ROLE: server
elasticmq:
image: softwaremill/elasticmq
hostname: presto-elasticmq
ports:
- "9324:9324"
healthcheck:
test: ["CMD","wget","-q","-S","-O","-","127.0.0.1:9324/?Action=ListQueues"]
interval: 10s
timeout: 5s
retries: 10
redis:
image: redis:latest
hostname: presto-redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
image:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: image.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
audio:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: audio.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
yake:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: yake_keywords.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
video:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: video.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
mean_tokens:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: mean_tokens.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
fasttext:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: fasttext.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
fptg:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: fptg.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
indian_sbert:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: indian_sbert.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy
classycat:
build: .
platform: linux/amd64
volumes:
- "./:/app"
env_file:
- ./.env_file
environment:
ROLE: worker
MODEL_NAME: classycat.Model
depends_on:
elasticmq:
condition: service_healthy
redis:
condition: service_healthy