forked from MBuffenoir/elk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (56 loc) · 1.46 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
# ELK
version: '2'
services:
# ELK
elasticdata:
image: elasticsearch:1.7.0
container_name: elasticdata
volumes:
- elasticsearch-data:/var/lib/elasticsearch/data
- elasticsearch-logs:/var/lib/elasticsearch/logs
command: chown elasticsearch:elasticsearch /var/lib/elasticsearch/logs /var/lib/elasticsearch/data
elasticsearch:
image: elasticsearch:1.7.0
container_name: elasticsearch
volumes_from:
- elasticdata
volumes:
- /home/docker/conf-files/es-conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
networks:
- logging
proxyelk:
image: nginx:1.9.3
container_name: proxyelk
ports:
- "5600:5600"
volumes:
- /home/docker/conf-files/proxy-conf:/etc/nginx/conf.d
depends_on:
- kibana
networks:
- logging
kibana:
image: kibana:4.1.1
container_name: kibana
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
- elasticsearch
- logstash
networks:
- logging
logstash:
image: logstash:1.5.3
container_name: logstash
ports:
- "5000:5000/udp"
volumes:
- /home/docker/conf-files/logstash-conf:/opt/logstash/conf.d
command: -f /opt/logstash/conf.d/logstash.conf
networks:
- logging
volumes:
elasticsearch-data:
elasticsearch-logs:
networks:
logging: