-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
46 lines (41 loc) · 1.04 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
version: '3'
services:
mongo:
image: mongo:3.4
ports:
- 27017:27017
volumes:
- mongo_configdb:/data/configdb
- mongo_db:/data/db
redis:
image: redis:3-alpine
ports:
- 6379:6379
volumes:
- redis_data:/data
elasticsearch:
image: elasticsearch:5.3-alpine
environment:
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ports:
- 9200:9200
command:
- sh
- -c
- "./bin/elasticsearch-plugin list | grep -q analysis-kuromoji || ./bin/elasticsearch-plugin install analysis-kuromoji;
./bin/elasticsearch-plugin list | grep -q analysis-icu || ./bin/elasticsearch-plugin install analysis-icu;
/docker-entrypoint.sh elasticsearch"
volumes:
- es_data:/usr/share/elasticsearch/data
- es_plugins:/usr/share/elasticsearch/plugins
- ./esconfig:/usr/share/elasticsearch/config
elasticsearch-head:
image: mobz/elasticsearch-head:5-alpine
ports:
- 9100:9100
volumes:
mongo_configdb:
mongo_db:
redis_data:
es_data:
es_plugins: