-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
95 lines (87 loc) · 2.13 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
92
93
94
95
version: '2'
services:
# filebeat: collect flat log files: docker run -d --name filebeat -v $PWD/filebeat/filebeat.yml:/filebeat.yml:ro -v /var/log/auth.log:/mnt/var/log/auth.log:ro sbex/filebeat
elasticsearch:
image: elasticsearch:5
volumes:
- elasticsearch:/usr/share/elasticsearch/data
- backup:/mount/backup
#- $PWD/es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- "9200:9200"
- "9300:9300"
environment:
# ES_HEAP_SIZE: 2g
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
restart: always
#logging:
# driver: syslog
# options:
# syslog-address: "udp://localhost:5000"
# syslog-format: rfc3164
# tag: elasticsearch
networks:
- docker_elk
kibana:
image: kibana:5
links:
- elasticsearch
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
#volumes:
# - $PWD/kibana/kibana.yml:/opt/kibana/config/kibana.yml
restart: always
depends_on:
- elasticsearch
#logging:
# driver: syslog
# options:
# syslog-address: "udp://localhost:5000"
# syslog-format: rfc3164
# tag: kibana
networks:
- docker_elk
logstash:
image: logstash:2 # v5 is very slow and unusable...
ports:
#- "5000:5000"
- "5000:5000/udp"
- "5001:5001"
volumes:
- $PWD/logstash/logstash.conf:/opt/logstash/conf.d/logstash.conf:ro
- $PWD/logstash/patterns:/opt/logstash/conf.d/patterns:ro
links:
- elasticsearch
command: -f /opt/logstash/conf.d/logstash.conf
restart: always
depends_on:
- elasticsearch
#logging:
# driver: syslog
# options:
# syslog-address: "udp://127.0.0.1:5000"
# syslog-format: rfc3164
# tag: logstash
networks:
- docker_elk
proxyelk:
image: nginx
links:
- kibana
ports:
- "5600:5600"
volumes:
- $PWD/proxy:/etc/nginx/conf.d
depends_on:
- kibana
restart: always
networks:
- docker_elk
volumes:
elasticsearch:
backup:
networks:
docker_elk:
driver: bridge