-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yaml
111 lines (100 loc) · 2.54 KB
/
docker-compose.local.yaml
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
version: "3.8"
services:
app:
image: spring-security:latest
ports:
- "8080:8080"
depends_on:
- db
- redis
environment:
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/database'
- 'SPRING_DATASOURCE_USERNAME=user'
- 'SPRING_DATASOURCE_PASSWORD=password'
- 'SPRING_JPA_HIBERNATE_DDL_AUTO=update'
- 'REDIS_HOST=redis'
- 'REDIS_PORT=6379'
db:
image: 'postgres:latest'
environment:
- 'POSTGRES_DB=database'
- 'POSTGRES_PASSWORD=password'
- 'POSTGRES_USER=user'
- 'PGPORT=5432'
ports:
- '5432:5432'
redis:
image: 'redis:latest'
container_name: redis
hostname: redis
ports:
- '6379:6379'
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
redis-exporter:
depends_on:
- redis
image: quay.io/oliver006/redis_exporter
ports:
- '9121:9121'
environment:
- REDIS_ADDR=redis
prometheus:
image: prom/prometheus
command: [ "--config.file=/prometheus.yml" ]
volumes:
- ./config/prometheus.yaml:/prometheus.yml
- ./config/rule_files/:/rule_files/
ports:
- '9090:9090'
depends_on:
- redis-exporter
- alertmanager
alertmanager:
image: prom/alertmanager
command: "--config.file=/alertmanager.yml"
volumes:
- ./config/alertmanager.yml:/alertmanager.yml
ports:
- '9093:9093'
grafana:
image: grafana/grafana
depends_on:
- prometheus
- redis-exporter
- loki
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
ports:
- "3000:3000"
environment:
- GF_INSTALL_PLUGINS=redis-datasource
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_SECURITY_ALLOW_EMBEDDING=true
loki:
image: grafana/loki
command: "--config.file=/etc/loki/loki.yml"
volumes:
- ./config/loki/loki.yml:/etc/loki/loki.yml
environment:
- JAEGER_AGENT_HOST=tempo
- JAEGER_ENDPOINT=http://tempo:14268/api/traces
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
ports:
- "3100:3100"
promtail:
image: grafana/promtail
command: "--config.file=/etc/promtail/promtail.yml"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config/promtail/promtail.yml:/etc/promtail/promtail.yml
tempo:
image: grafana/tempo
command: [ "--config.file=/etc/tempo.yaml" ]
volumes:
- ./config/tempo/tempo.yaml:/etc/tempo.yaml
ports:
- "9411:9411"