-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose-deployment.yml
62 lines (58 loc) · 1.45 KB
/
docker-compose-deployment.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
version: '2.2'
services:
elasticsearch1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- esdata1:/usr/share/elasticsearch/data
- ./docker-healthcheck:/usr/local/bin/docker-healthcheck
healthcheck:
test: ["CMD", "/bin/bash", "/usr/local/bin/docker-healthcheck"]
ports:
- 9200:9200
- 9300:9300
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0
container_name: elasticsearch2
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- esdata2:/usr/share/elasticsearch/data
fscrawler:
image: shadiakiki1986/fscrawler
volumes:
- ${TARGET_DIR:-./data/}:/tmp/es/:ro
- ./config/:/usr/share/fscrawler/config/
depends_on:
elasticsearch1:
condition: service_healthy
command:
- --config_dir
- /usr/share/fscrawler/config
- ${JOB_NAME:-fscrawler_job}
volumes:
esdata1:
driver: local
esdata2:
driver: local