forked from multiversx/mx-chain-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (65 loc) · 1.86 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
version: '3'
services:
elrond:
build:
context: ./
dockerfile: ./docker/elrond/Dockerfile
command: bash -c "go run cmd/node/main.go -port 4000 -max-allowed-peers 4 -private-key \"ZBis8aK5I66x1hwD+fE8sIw2nwQR5EBlTM8EiAOLZwE=\""
ports:
- 8080:8080
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0
container_name: es01
environment:
- node.name=es01
- discovery.seed_hosts=es02
- cluster.name=elrond-cluster
- bootstrap.memory_lock=true
- cluster.initial_master_nodes=es01,es02
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./esdata/node1:/usr/share/elasticsearch/data
- ./docker/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
# networks:
# - elrond
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0
container_name: es02
environment:
- node.name=es02
- discovery.seed_hosts=es01
- cluster.name=elrond-cluster
- bootstrap.memory_lock=true
- cluster.initial_master_nodes=es01,es02
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./esdata/node2:/usr/share/elasticsearch/data
- ./docker/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
# networks:
# - elrond
filebeat:
build: docker/filebeat
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
LOGSTASH_PORT: ${LOGSTASH_PORT}
INDEX: ${ELASTIC_INDEX}
volumes:
- ./docker/filebeat/filebeat.yml:/filebeat.yml
- ./docker/filebeat/logstash-beats.crt:/etc/pki/tls/certs/logstash-beats.crt
- ${ELROND_LOG_LOCATION}:/elogs
#networks:
# elrond:
# external:
# name: "elrond"
test:
build: ./