forked from fabioviana/elk-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 1.04 KB
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
version: '2'
services:
stack-elasticsearch:
image: elasticsearch:5.3.0
restart: always
ports:
- "9300:9300"
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data:rw
stack-kibana:
build: kibana/
restart: always
depends_on:
- stack-elasticsearch
environment:
- ELASTICSEARCH_URL=http://stack-elasticsearch:9200
stack-nginx:
image: nginx:1.11.8
restart: always
depends_on:
- stack-elasticsearch
- stack-kibana
ports:
- "80:80"
- "9200:9200"
volumes:
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
stack-logstash:
image: logstash:5.3.0
restart: always
depends_on:
- stack-elasticsearch
ports:
- "5044:5044"
command: logstash -f /var/lib/logstash/logstash.conf
volumes:
- ./logstash/:/var/lib/logstash:rw