-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.es.yml
More file actions
68 lines (64 loc) · 1.48 KB
/
Copy pathdocker-compose.es.yml
File metadata and controls
68 lines (64 loc) · 1.48 KB
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
version: '3.7'
services:
es01:
build:
context: ./elasticsearch/elasticsearch
dockerfile: Dockerfile.es
container_name: es01
environment:
- node.name=es01
- discovery.seed_hosts=es02
- cluster.initial_master_nodes=es01,es02
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- fastapi_network
es02:
build:
context: ./elasticsearch/elasticsearch
dockerfile: Dockerfile.es
container_name: es02
environment:
- node.name=es02
- discovery.seed_hosts=es01
- cluster.initial_master_nodes=es01,es02
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata02:/usr/share/elasticsearch/data
networks:
- fastapi_network
# logstash:
# build:
# context: ./logstash
# dockerfile: Dockerfile
# ports:
# - 5044:5044
# - 9600:9600
# # volumes:
# # - ./logstash:/logstash
# tty: true
# networks:
# - fastapi_network
volumes:
esdata01:
driver: local
esdata02:
driver: local
networks:
fastapi_network:
external: true