-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
190 lines (176 loc) · 4.52 KB
/
compose.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
networks:
playground-net:
services:
pets:
build:
context: ./apps/veterinary_clinic/pets/
dockerfile: Dockerfile
networks:
- playground-net
ports:
- 8081:8080
owners:
build:
context: ./apps/veterinary_clinic/owners/
dockerfile: Dockerfile
networks:
- playground-net
ports:
- 8082:8080
doctors:
build:
context: ./apps/veterinary_clinic/doctors/
dockerfile: Dockerfile
networks:
- playground-net
ports:
- 8083:8080
keycloak:
image: keycloak/keycloak
networks:
- playground-net
ports:
- 8090:8080
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
command: ["start-dev"]
krakend:
image: devopsfaith/krakend:2.6.3
volumes:
- ./apps/krakend/krakend.json:/etc/krakend/krakend.json
networks:
- playground-net
ports:
- 8080:8080
- 8001:9090
depends_on:
- alloy
- pets
- doctors
- owners
grafana:
image: grafana/grafana
networks:
- playground-net
ports:
- "3000:3000"
init-volumes:
image: alpine
user: root
entrypoint:
- "chown"
- "10001:10001"
- "/var/tempo"
- "/var/mimir"
- "/var/loki"
- "/var/minio"
volumes:
- ./apps/tempo/data:/var/tempo
- ./apps/mimir/data:/var/mimir
- ./apps/loki/data:/var/loki
- ./apps/minio/data:/var/minio
alloy:
image: grafana/alloy
networks:
- playground-net
environment:
- ALLOY_TEMPO_ENDPOINT=http://tempo:4317
- ALLOY_MIMIR_ENDPOINT=http://mimir:9009/api/v1/push
- ALLOY_LOKI_ENDPOINT=http://loki:3100/loki/api/v1/push
ports:
- 12345:12345
volumes:
- ./apps/alloy/config/config.alloy:/etc/alloy/config.alloy
depends_on:
- tempo
- loki
- mimir
tempo:
image: grafana/tempo
networks:
- playground-net
environment:
- TEMPO_MINIO_ACCESS_KEY_ID=3ofmK7rW9fUJWKGuVLs3
- TEMPO_MINIO_SECRET_ACCESS_KEY=HOO5qK302ICEEnmryY2fQfPrOH42GWVuyyf3SfIM
- TEMPO_MINIO_BUCKET_NAME=tempo
command: [ "-config.file=/etc/tempo.yaml", "-config.expand-env=true"]
volumes:
- ./apps/tempo/config/tempo.yaml:/etc/tempo.yaml
- ./apps/tempo/data:/var/tempo
ports:
- "14268:14268" # jaeger ingest
- "3200:3200" # tempo
- "9095:9095" # tempo grpc
- "4317:4317" # otlp grpc
- "4318:4318" # otlp http
- "9411:9411" # zipkin
depends_on:
- init-volumes
- minio
mimir:
image: grafana/mimir
networks:
- playground-net
environment:
- MIMIR_MINIO_ACCESS_KEY_ID=JjsRW6yMFL76pzcEbWhv
- MIMIR_MINIO_SECRET_ACCESS_KEY=4dWnhuNhjlSMwjcIKqeBFeLvyvYDeD6e1CcN31z1
- MIMIR_MINIO_BLOCKS_BUCKET_NAME=mimirblocks
- MIMIR_MINIO_ALERT_BUCKET_NAME=mimiralert
- MIMIR_MINIO_RULER_BUCKET_NAME=mimirruler
command: ["-ingester.native-histograms-ingestion-enabled=true", "-config.file=/etc/mimir.yaml", "-config.expand-env=true"]
ports:
- "9009:9009"
volumes:
- ./apps/mimir/config/mimir.yaml:/etc/mimir.yaml
- ./apps/mimir/data:/var/mimir
depends_on:
- init-volumes
- minio
loki:
image: grafana/loki
networks:
- playground-net
environment:
- LOKI_MINIO_ACCESS_KEY_ID=295FlaAFUtnXf5TmGIpt
- LOKI_MINIO_SECRET_ACCESS_KEY=GwhKKGiss4lN1UgJBbX935xgVLc8zU0CaXquMfIU
- LOKI_MINIO_BUCKET_NAME=loki
- LOKI_MINIO_REGION=local
ports:
- "3100:3100"
command: [ "-config.file=/etc/loki.yaml", "-config.expand-env=true" ]
volumes:
- ./apps/loki/config/loki.yaml:/etc/loki.yaml
- ./apps/loki/data:/var/loki
depends_on:
- init-volumes
- minio
minio:
image: minio/minio
networks:
- playground-net
environment:
- MINIO_ADDRESS=:9000
- MINIO_CONSOLE_ADDRESS=:9001
- MINIO_ROOT_USER=miniorootuser
- MINIO_ROOT_PASSWORD=miniorootpass
ports:
- "9000:9000"
- "9001:9001"
command: [ "server", "/var/minio" ]
volumes:
- ./apps/minio/data:/var/minio
depends_on:
- init-volumes
# prometheus:
# image: prom/prometheus
# networks:
# - playground-net
# ports:
# - "9090:9090"
# command:
# - --web.enable-remote-write-receiver
# - --config.file=/etc/prometheus/prometheus.yml
# volumes:
# - ./apps/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
# - ./apps/prometheus/data:/prometheus