forked from jakelandis/docker-hot-warm-cold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (84 loc) · 2.74 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
version: '3'
services:
elasticsearch-hot:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
container_name: hot
command: ["sh", "-c", "/usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3 -s --batch && /usr/local/bin/docker-entrypoint.sh"]
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# - ELASTIC_PASSWORD=foobar
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
volumes:
- $PWD/hot/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- $PWD/hot/elasticsearch.keystore:/usr/share/elasticsearch/config/elasticsearch.keystore
- $PWD:/usr/share/elasticsearch/config/docker_host
networks:
- esnet
elasticsearch-warm:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
container_name: warm
command: ["sh", "-c", "/usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3 -s --batch && /usr/local/bin/docker-entrypoint.sh"]
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# - ELASTIC_PASSWORD=foobar
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9201:9201
volumes:
- $PWD/warm/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- $PWD/warm/elasticsearch.keystore:/usr/share/elasticsearch/config/elasticsearch.keystore
- $PWD:/usr/share/elasticsearch/config/docker_host
networks:
- esnet
elasticsearch-cold:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
container_name: cold
command: ["sh", "-c", "/usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3 -s --batch && /usr/local/bin/docker-entrypoint.sh"]
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9202:9202
volumes:
- $PWD/cold/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- $PWD/cold/elasticsearch.keystore:/usr/share/elasticsearch/config/elasticsearch.keystore
- $PWD:/usr/share/elasticsearch/config/docker_host
networks:
- esnet
kibana:
image: docker.elastic.co/kibana/kibana:7.10.0
container_name: kibana
ports:
- "5601:5601"
networks:
- esnet
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
depends_on:
- elasticsearch-hot
minio:
image: minio/minio
container_name: minio
command: server /data
environment:
- "MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE"
- "MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
ports:
- 9000:9000
volumes:
- /data:/home/jakelandis/workspace/data/minio
networks:
- esnet
networks:
esnet: