-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.66 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
version: "2.2"
services:
es01:
build:
context: .
dockerfile: elasticsearch.Dockerfile
args:
- STACK_VERSION=${STACK_VERSION}
- CA_Password=${CA_Password}
- CA_CertificateName=${CA_CertificateName}
- Node_Password=${Node_Password}
- Node_TLS_CertificateName=${Node_TLS_CertificateName}
stdin_open: true
tty: true
volumes:
- ./elasticsearch_configfiles/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- esdata01:/usr/share/elasticsearch/data
ports:
- ${ES_PORT}:9200
networks:
- stackELK-net
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65535
hard: 65535
kibana:
depends_on:
- es01
image: docker.elastic.co/kibana/kibana:${STACK_VERSION}
volumes:
- kibanadata:/usr/share/kibana/data
- ./kibana_configfiles/elasticsearch-ca.pem:/usr/share/kibana/config/certs/elasticsearch-ca.pem
# - ./kibana_configfiles/kibana-server.key:/usr/share/kibana/config/kibana-server.key
# - ./kibana_configfiles/kibana.crt:/usr/share/kibana/config/certs/kibana.crt
#Bind-mount: in case you want a custom kibana.yml configuration:
#- ./kibana_configfiles/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- ${KIBANA_PORT}:5601
environment:
- SERVERNAME=kibana
- ELASTICSEARCH_HOSTS=https://es01:${ES_PORT}
- ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES=/usr/share/kibana/config/certs/elasticsearch-ca.pem
networks:
- stackELK-net
volumes:
esdata01:
driver: local
kibanadata:
driver: local
networks:
stackELK-net:
driver: bridge