-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose-elk.yml
76 lines (73 loc) · 1.99 KB
/
docker-compose-elk.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
# environment variables (defined in .env file):
# - ELK_VERSION: Docker image tag to use for elasticsearch, logstash & kibana
version: '3.3'
services:
# ELK logging stack
elasticsearch:
deploy:
resources:
limits:
memory: 8g
image: docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
command: elasticsearch -E network.host=0.0.0.0
volumes:
- ./config/elk/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ./config/elk/jvm.options:/usr/share/elasticsearch/config/jvm.options:ro
- ./config/elk/logs:/usr/share/elasticsearch/data
# ulimits:
# memlock:
# soft: -1
# hard: -1
# nofile:
# soft: 65536
# hard: 65536
# cap_add:
# - IPC_LOCK
ports:
- 9200:9200
- 9300:9300
networks:
- hobbit
- hobbit-core
- hobbit-services
logstash:
image: docker.elastic.co/logstash/logstash:${ELK_VERSION}
command: logstash -f /usr/share/logstash/config/logstash.conf
environment:
- constraint:org.hobbit.type==data
- LS_JAVA_OPTS=-Xmx256m -Xms256m
volumes:
- ./config/elk/logstash.conf:/usr/share/logstash/config/logstash.conf:ro
- ./config/elk/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
networks:
- hobbit
- hobbit-core
- hobbit-services
ports:
- "12201:12201"
- "12201:12201/udp"
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:${ELK_VERSION}
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- SERVER_NAME=kibana
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=changeme
- XPACK_SECURITY_ENABLED=false
- XPACK_MONITORING_ENABLED=false
networks:
- hobbit-services
ports:
- "5601:5601"
networks:
hobbit:
external:
name: hobbit
hobbit-core:
external:
name: hobbit-core
hobbit-services:
external:
name: hobbit-services