-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.no_dev.yml
197 lines (184 loc) · 4.42 KB
/
docker-compose.no_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
version: '3.6'
services:
dev:
image: hello-world:latest
load_balancer:
build:
context: ./app/load_balancer
restart: always
ports:
- "80:80"
env_file:
- .env
volumes:
- ${LOCAL_PATH}/app/load_balancer:/app
links:
- app_kcp
- app_jdc
depends_on:
- app_kcp
- app_jdc
app_kcp:
build:
context: ./app/app_kcp
restart: always
# ports:
# - 127.0.0.1:8099:80
env_file:
- .env
volumes:
- ${LOCAL_PATH}/app/app_kcp:/app
# - ${LOCAL_PATH}/app/app_kcp/site.conf:/etc/nginx/conf.d/site.conf
links:
- nlp_api
depends_on:
- nlp_api
app_jdc:
build:
context: ./app/app_jdc
restart: always
# ports:
# - 127.0.0.1:8089:80
env_file:
- .env
volumes:
- ${LOCAL_PATH}/app/app_jdc:/app
# - ${LOCAL_PATH}/app/app_jdc/site.conf:/etc/nginx/conf.d/site.conf
links:
- nlp_api
depends_on:
- nlp_api
dfr:
build:
context: ./app/dfr
restart: always
# ports:
# - 127.0.0.1:8098:80
env_file:
- .env
volumes:
- ${LOCAL_PATH}/models/dfr/data:/usr/share/nginx/html/data
# - ${LOCAL_PATH}/app/dfr/data:/usr/share/nginx/html/data
tika:
image: apache/tika:latest
restart: always
redis:
image: redis:latest
restart: always
selenium:
# image: selenium/standalone-chrome:4.0.0-beta-1-prerelease-20210209
image: selenium/standalone-chrome:88.0
restart: always
ports:
- 127.0.0.1:4444:4444
volumes:
- /dev/shm:/dev/shm
mongodb:
image: mongo:latest
restart: always
env_file:
- .env
environment:
- ${LOCAL_PATH}/data/mongodb:/data/db
ports:
- 127.0.0.1:27018:27017
milvus:
# image: milvusdb/milvus:cpu-latest
image: milvusdb/milvus:0.11.0-cpu-d101620-4c44c0
restart: always
env_file:
- .env
volumes:
- ${LOCAL_PATH}/milvus/db:/var/lib/milvus/db
- ${LOCAL_PATH}/milvus/conf:/var/lib/milvus/conf
- ${LOCAL_PATH}/milvus/logs:/var/lib/milvus/logs
- ${LOCAL_PATH}/milvus/wal:/var/lib/milvus/wal
ports:
- 127.0.0.1:19530:19530
- 127.0.0.1:19121:19121
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
restart: always
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=es01,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ${LOCAL_PATH}/elasticsearch/data/01:/usr/share/elasticsearch/data
ports:
- 127.0.0.1:9200:9200
# networks:
# - elastic
# # - default
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
restart: always
container_name: es02
environment:
- node.name=es02
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es01,es03
- cluster.initial_master_nodes=es01,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ${LOCAL_PATH}/elasticsearch/data/02:/usr/share/elasticsearch/data
# networks:
# - elastic
es03:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
restart: always
container_name: es03
environment:
- node.name=es03
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es01,es02
- cluster.initial_master_nodes=es01,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ${LOCAL_PATH}/elasticsearch/data/03:/usr/share/elasticsearch/data
# networks:
# - elastic
nlp_api:
build:
context: ./
dockerfile: ./app/nlp_api/Dockerfile
args:
ENV_ID: nlp_api
ENV_PROD_FILE: "environment.nlp_api.yml"
PORT: 8919
restart: always
env_file:
- .env
volumes:
- ${LOCAL_PATH}/models:/workspace/models
- ${LOCAL_PATH}/data/preprocessed:/workspace/data/preprocessed
- ${LOCAL_PATH}/data/whitelists:/workspace/data/whitelists
ports:
- "8991:8919"
links:
- mongodb
- es01
depends_on:
- mongodb
- es01
# networks:
# elastic:
# driver: bridge