-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathdocker-compose.yml
82 lines (74 loc) · 1.58 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
version: '3.6'
services:
elasticsearch:
labels:
com.example.service: "es"
com.example.description: "For searching and indexing data"
image: elasticsearch
networks:
- elk
volumes:
- type: volume
source: esdata
target: /usr/share/elasticsearch/data/
ports:
- "9200:9200"
logstash:
labels:
com.example.service: "logstash"
com.example.description: "For logging data"
image: logstash
networks:
- elk
volumes:
- ./samples/logstash:/etc/logstash
command: logstash -f /etc/logstash/logstash.conf
depends_on:
- elasticsearch
kibana:
labels:
com.example.service: "kibana"
com.example.description: "Data visualisation and for log aggregation"
image: kibana
networks:
- elk
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
- elasticsearch
grafana:
labels:
com.example.service: "grafana"
com.example.description: "Data visualisation"
image: grafana/grafana
networks:
- elk
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- ./samples/grafana:/etc/grafana/provisioning
depends_on:
- elasticsearch
nginx:
container_name: nginx_accounting
build:
context: .
dockerfile: samples/Dockerfile
networks:
- nginx
- elk
ports:
- 8080:8080
- 8888:8888
- 9999:9999
depends_on:
- logstash
networks:
nginx:
elk:
volumes:
esdata: