-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.infra.yml
100 lines (90 loc) · 2.27 KB
/
docker-compose.infra.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
version: '3.8'
services:
traefik:
image: traefik:v3.0
restart: unless-stopped
ports:
- "80:80"
- "8080:8080"
command:
- --providers.docker
- --api.insecure=false
- --entrypoints.web.address=:80
- --providers.docker.exposedByDefault=false
volumes:
- /var/run/docker.sock:/var/run/docker.sock
rabbitmq:
build:
context: ./infra/rabbitmq
ports:
- "15672:15672"
- "5672:5672"
- "15692:15692"
volumes:
- rabbitmq-data:/var/lib/rabbitmq
prometheus:
image: prom/prometheus:v2.46.0
ports:
- "9090:9090"
volumes:
- ./infra/prometheus/config:/etc/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
grafana:
image: grafana/grafana:10.1.0
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./infra/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
depends_on:
- prometheus
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.2
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.type=single-node"
- "xpack.security.enabled=false"
ports:
- "9200:9200"
volumes:
- es-data:/usr/share/elasticsearch/data
logstash:
image: docker.elastic.co/logstash/logstash:8.10.2
restart: unless-stopped
ports:
- "5044:5044"
volumes:
- ./infra/logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:8.10.2
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
depends_on:
- elasticsearch
filebeat:
image: docker.elastic.co/beats/filebeat:8.10.2
user: root
volumes:
- ./infra/filebeat/filebeat.docker.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on:
- elasticsearch
- logstash
redis:
image: redis:7.2.0-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
volumes:
rabbitmq-data:
grafana-data:
es-data:
redis-data: