-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
220 lines (204 loc) · 5.17 KB
/
docker-compose.dev.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
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
version: "3"
name: "nlp-workbench${PROJECT_NAME:-dev}"
services:
api:
ports:
- "${API_PORT:-50050}:50050"
build:
dockerfile: ./build/Dockerfile.api
target: ${COMPOSE_TARGET:-prod}
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
- BING_KEY=${BING_KEY}
- API_WORKERS=${API_WORKERS:-1}
depends_on:
- elasticsearch
- redis
- relation_extraction
profiles:
- non-gpu
- debug
frontend:
build:
context: ./frontend
dockerfile: ./Dockerfile
target: ${COMPOSE_TARGET:-prod}
depends_on:
- api
- neo4j
- kibana
- flower
ports:
- "${FRONTEND_PORT:-8081}:80"
profiles:
- non-gpu
ner:
build:
dockerfile: ./build/Dockerfile.ner
target: ${COMPOSE_TARGET:-prod}
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
profiles:
- gpu
linker:
build:
dockerfile: ./build/Dockerfile.linker
depends_on:
- redis
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
profiles:
- non-gpu
amr:
build:
dockerfile: ./build/Dockerfile.amr
target: ${COMPOSE_TARGET:-prod}
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
profiles:
- gpu
amr2text:
build:
dockerfile: ./build/Dockerfile.amr2text
target: ${COMPOSE_TARGET:-prod}
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
profiles:
- gpu
vader:
build:
dockerfile: ./build/Dockerfile.vader
target: ${COMPOSE_TARGET:-prod}
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
profiles:
- non-gpu
relation_extraction:
build:
dockerfile: ./build/Dockerfile.rel
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
depends_on:
- redis
- ner
profiles:
- non-gpu
- debug
background:
build:
dockerfile: ./build/Dockerfile.background
depends_on:
- redis
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
profiles:
- non-gpu
classifier:
build:
dockerfile: ./build/Dockerfile.classifier
target: ${COMPOSE_TARGET:-prod}
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
volumes:
- type: "bind"
source: /data/local/workbench-data/classifiers # CHANGE THIS
target: /app/models
profiles:
- non-gpu
flower:
image: mher/flower:latest
command: celery --broker=${RPC_BROKER:-redis://redis} --result-backend=redis://redis${RPC_BROKER:-redis://redis} flower --url_prefix=flower
ports:
- 5555 # unpublish port
depends_on:
- redis
profiles:
- non-gpu
redis:
image: redis:7.0-alpine
command: redis-server --save "" --appendonly no ${REDIS_AUTH}
ports:
- 6379 # no need to publish
profiles:
- non-gpu
- debug
neo4j:
build:
context: ./neo4j
ports:
- 7687 # no need to publish
- 7474 # no need to publish
stop_grace_period: 2m
profiles:
- non-gpu
coll-neo4j:
build:
context: ./neo4j
environment:
- NEO4J_AUTH=neo4j/coll123
- NEO4J_dbms_security_procedures_unrestricted=gds.*,apoc.*
- NEO4J_dbms_security_procedures_allowlist=gds.*,apoc.*
profiles:
- non-gpu
stop_grace_period: 2m
coll:
build:
dockerfile: ./build/Dockerfile.coll
target: ${COMPOSE_TARGET:-prod}
profiles:
- non-gpu
- debug
environment:
- RPC_BROKER=${RPC_BROKER:-redis://redis}
- RPC_BACKEND=${RPC_BACKEND:-redis://redis}
- BEARER_TOKEN=${BEARER_TOKEN}
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- BING_KEY=${BING_KEY}
depends_on:
- coll-neo4j
- redis
- elasticsearch
elasticsearch:
image: "elasticsearch:8.2.2"
ports:
- 9200
environment:
- discovery.type=single-node
- xpack.security.enabled=false # disable SSL
- xpack.security.http.ssl.enabled=false # disable SSL
- xpack.security.transport.ssl.enabled=false # disable SSL
- bootstrap.memory_lock=true # disable swap
- logger.level=ERROR
#- path.repo=/repo # for restoring from backup
mem_limit: ${ES_MEM_LIMIT:-16g} # TODO: increase later
ulimits:
memlock:
soft: -1
hard: -1
profiles:
- non-gpu
- debug
kibana:
image: "kibana:8.2.2"
ports:
- 5601 # unpublish port
environment:
- SERVER_NAME=kibana
- SERVER_BASEPATH=/kibana
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=kibana_system
- ELASTICSEARCH_PASSWORD=kibana # CHANGE THIS
- LOGGING_ROOT_LEVEL=warn
depends_on:
- elasticsearch
profiles:
- non-gpu