-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.elk-kibana.yml
42 lines (38 loc) · 1.04 KB
/
docker-compose.elk-kibana.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
version: "3.8"
services:
# services
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.7
container_name: elasticsearch
environment:
- xpack.monitoring.enabled=true
- xpack.watcher.enabled=false
- xpack.security.enabled=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
- ELASTIC_USERNAME=${ELASTIC_USERNAME} # default username: elastic
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
ports:
- "9200:9200"
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.17.7
container_name: kibana
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=${ELASTIC_USERNAME}
- ELASTICSEARCH_PASSWORD=${ELASTIC_PASSWORD}
depends_on:
- elasticsearch
ports:
- "5601:5601"
# network section
networks:
default:
name: my-network
driver: bridge
# volumes section
volumes:
elasticsearch_data:
name: elasticsearch_data