-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose-app.yml
83 lines (78 loc) · 3.02 KB
/
docker-compose-app.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
version: "3.8"
services:
strategy-plugin-service:
# Build image with "./gradlew bootBuildImage from book-service project"
image: ghcr.io/rajadilipkolli/my-spring-boot-experiments/boot-strategy-plugin:latest
container_name: strategy-plugin-service
ports:
- "8080:8080"
depends_on:
grafana:
condition: service_healthy
environment:
- LOKI_URI=http://loki:3100/loki/api/v1/push
- MANAGEMENT_ZIPKIN_TRACING_ENDPOINT=http://tempo:9411
tempo:
image: grafana/tempo
extra_hosts: ['host.docker.internal:host-gateway']
container_name: tempo
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./platform/tempo/tempo-local.yaml:/etc/tempo.yaml:ro
- ./platform/tempo/tempo-data:/tmp/tempo
ports:
- "3200:3200" # Tempo
- "4317:4317" # OTLP
- "9411:9411" # Zipkin
healthcheck:
interval: 5s
retries: 10
test: wget --no-verbose --tries=1 --spider http://localhost:3200/status || exit 1
loki:
image: grafana/loki
extra_hosts: ['host.docker.internal:host-gateway']
container_name: loki
command: [ "-config.file=/etc/loki/local-config.yaml" ]
ports:
- "3100:3100" # loki needs to be exposed so it receives logs
prometheus:
image: prom/prometheus
extra_hosts: ['host.docker.internal:host-gateway']
container_name: prometheus
command:
- --enable-feature=exemplar-storage
- --config.file=/etc/prometheus/prometheus.yml
- --web.enable-remote-write-receiver
volumes:
- ./platform/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
healthcheck:
interval: 5s
retries: 10
test: wget --no-verbose --tries=1 --spider http://localhost:9090/status || exit 1
grafana:
image: grafana/grafana
extra_hosts: ['host.docker.internal:host-gateway']
container_name: grafana
depends_on:
tempo:
condition: service_healthy
prometheus:
condition: service_healthy
loki:
condition: service_started
volumes:
- ./platform/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./platform/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./platform/grafana/provisioning/grafana.ini:/etc/grafana/grafana.ini
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"
healthcheck:
interval: 5s
retries: 10
test: wget --no-verbose --tries=1 --spider http://localhost:3000 || exit 1