-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
127 lines (119 loc) · 3.18 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: '3.3'
services:
redis:
image: redis
container_name: redis
hostname: redis
ports:
- 6379:6379
push:
build:
context: .
target: RUN_IMAGE
image: thegoncalomartins/push
container_name: push
hostname: push
depends_on:
- redis
environment:
PUSH_RECONNECT_DITHER_MIN_DURATION: 120s
PUSH_RECONNECT_DITHER_MAX_DURATION: 180s
PUSH_CLIENT_CLOSE_GRACE_PERIOD_DURATION: 4s
PUSH_HEARTBEAT_INTERVAL_DURATION: 30s
SERVER_PORT: 8080
MANAGEMENT_SERVER_PORT: 8000
OPENTRACING_JAEGER_UDP_SENDER_HOST: jaeger
OPENTRACING_JAEGER_UDP_SENDER_PORT: 6831
SPRING_PROFILES_ACTIVE: docker
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
SPRING_REDIS_DATABASE: 0
ports:
- 8080:8080
- 8000:8000
labels:
collect_logs_with_filebeat: "true"
decode_log_event_to_json_object: "true"
prometheus:
image: prom/prometheus
container_name: prometheus
hostname: prometheus
depends_on:
- push
- jaeger
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
grafana:
image: grafana/grafana
container_name: grafana
hostname: grafana
depends_on:
- prometheus
- jaeger
- redis
volumes:
- ./grafana/dashboards:/var/lib/grafana/dashboards
- ./grafana/provisioning:/etc/grafana/provisioning
ports:
- 3000:3000
environment:
GF_INSTALL_PLUGINS: redis-app
jaeger:
image: jaegertracing/all-in-one
container_name: jaeger
hostname: jaeger
ports:
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 14268:14268
elasticsearch:
image: elasticsearch:8.2.3
container_name: elasticsearch
hostname: elasticsearch
ports:
- 9200:9200
environment:
discovery.type: single-node
xpack.security.enabled: "false"
ES_JAVA_OPTS: -Xms512m -Xmx512m
logstash:
image: logstash:8.2.3
container_name: logstash
hostname: logstash
ports:
- 25826:25826
- 5044:5044
volumes:
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro # Pipeline configuration
environment:
xpack.security.enabled: "false"
ES_JAVA_OPTS: -Xms512m -Xmx512m
depends_on:
- elasticsearch
kibana:
image: kibana:8.2.3
container_name: kibana
hostname: kibana
ports:
- 5601:5601
environment:
elasticsearch.hosts: http://elasticsearch:9200
ES_JAVA_OPTS: -Xms512m -Xmx512m
depends_on:
- elasticsearch
filebeat:
image: elastic/filebeat:8.2.3
container_name: filebeat
hostname: filebeat
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
user: root # Allow access to log files and docker.sock
depends_on:
- logstash