forked from zorteran/elastic-stack-docker-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (61 loc) · 1.99 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
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.0.0
container_name: elasticsearch
restart: unless-stopped
environment:
- node.name=es01
- cluster.name=wiaderko
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=true
- xpack.security.http.ssl.enabled=true
- xpack.security.http.ssl.key=certs/localhost/localhost.key
- xpack.security.http.ssl.certificate_authorities=certs/localhost/localhost.crt
- xpack.security.http.ssl.certificate=certs/localhost/localhost.crt
- xpack.security.transport.ssl.enabled=true
- xpack.security.transport.ssl.verification_mode=certificate
- xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
- xpack.security.transport.ssl.certificate=certs/localhost/localhost.crt
- xpack.security.transport.ssl.key=certs/localhost/localhost.key
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
- ./certs:/usr/share/elasticsearch/config/certs
ports:
- 9200:9200
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:8.0.0
container_name: kibana
restart: unless-stopped
environment:
- ELASTICSEARCH_HOSTS=["https://elasticsearch:9200"]
- ELASTICSEARCH_SSL_VERIFICATIONMODE=certificate
- ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES=["/usr/share/kibana/certs/ca/ca.crt"]
- ELASTICSEARCH_USERNAME=kibana
- ELASTICSEARCH_PASSWORD=CHANGE_ME_PLS
- XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY=wiadrodanychpljestmegasupericool
depends_on:
- elasticsearch
ports:
- 5601:5601
volumes:
- kibanadata:/usr/share/kibana/data
- ./certs:/usr/share/kibana/certs
networks:
- elastic
volumes:
es-data:
driver: local
kibanadata:
driver: local
networks:
elastic:
driver: bridge