forked from multiversx/mx-chain-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (84 loc) · 2.5 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
90
91
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
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack
ports:
- "4566-4599:4566-4599"
- "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
environment:
#- SERVICES=${SERVICES- }
- SERVICES=kinesis
- DEBUG=1
- DATA_DIR=./tmp/localstack
- PORT_WEB_UI=8080
- LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR- }
- KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- }
- DOCKER_HOST=unix:///var/run/docker.sock
- HOST_TMP_FOLDER=${TMPDIR}
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
# 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: ./