-
Notifications
You must be signed in to change notification settings - Fork 74
/
docker-compose.yml
58 lines (52 loc) · 1.74 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
version: "3.5"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
ports:
- "9200:9200"
environment:
- "discovery.type=single-node"
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data:rw # Persistence data
logstash:
image: docker.elastic.co/logstash/logstash:7.2.0
ports:
- "25826:25826"
- "5044:5044"
volumes:
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro # Pipeline configuration
restart: on-failure
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:7.2.0
ports:
- "5601:5601"
restart: on-failure
depends_on:
- elasticsearch
filebeat:
image: docker.elastic.co/beats/filebeat:7.2.0
volumes:
- ./filebeat/filebeat.docker.yml:/usr/share/filebeat/filebeat.yml:ro # Configuration file
- /var/lib/docker/containers:/var/lib/docker/containers:ro # Docker logs
- /var/run/docker.sock:/var/run/docker.sock:ro # Additional information about containers
- ./filebeat/data:/usr/share/filebeat/data:rw # Persistence data
user: root # Allow access to log files and docker.sock
restart: on-failure
depends_on:
- logstash
comment-service:
image: cassiomolin/comment-service:latest
ports:
- "8002:8002"
labels:
collect_logs_with_filebeat: "true"
decode_log_event_to_json_object: "true"
post-service:
image: cassiomolin/post-service:latest
ports:
- "8001:8001"
labels:
collect_logs_with_filebeat: "true"
decode_log_event_to_json_object: "true"