forked from FritzAndFriends/TagzApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
87 lines (82 loc) · 2.67 KB
/
docker-compose.local.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
version: "3.8"
services:
# TODO: This was not implemented yet...
# web:
# container_name: tagzapp.web
# hostname: tagzappweb
# build:
# dockerfile: ./src/TagzApp.Blazor/dockerfile
# context: .
# ports:
# - "80" # runs on a random local port. Change to "8080:80" if you want to run on localhost:8080
# env_file:
# # when .env values are used in this docker-compose file like 'hostname: $hostname' for example it is strongly recommended to inject them by referencing them like 'docker compose up --env-file .env' or 'docker compose up --env-file .env.local'
# - .env
# - .env.local
# depends_on:
# - otelcol
grafana:
image: grafana/grafana:10.3.1
environment:
- "GF_AUTH_DISABLE_LOGIN_FORM=true"
- "GF_AUTH_ANONYMOUS_ENABLED=true"
- "GF_AUTH_ANONYMOUS_ORG_ROLE=Admin"
- "GF_FEATURE_TOGGLES_ENABLE=traceToMetrics"
volumes:
- ./observability-config/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- ./observability-config/grafana-dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
- ./observability-config/dashboards:/var/lib/grafana/dashboards
ports:
- "3000:3000"
depends_on:
- tempo
- loki
otelcol:
image: otel/opentelemetry-collector-contrib:0.95.0
deploy:
resources:
limits:
memory: 125M
restart: unless-stopped
command: [ "--config=/etc/otelcol-config.yaml" ]
volumes:
- ./observability-config/otelcol-config.yaml:/etc/otelcol-config.yaml
ports:
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
loki:
image: grafana/loki:2.9.4
ports:
- "3100"
command: -config.file=/etc/loki/local-config.yaml
volumes:
- ./observability-config/loki-data:/loki
depends_on:
- otelcol
tempo:
image: grafana/tempo:2.3.1
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./observability-config/tempo.yaml:/etc/tempo.yaml
- ./observability-config/tempo-data:/tmp/tempo
ports:
- "14268" # jaeger ingest
- "3200" # tempo
- "4317" # otlp grpc
- "4318" # otlp http
- "9411" # zipkin
depends_on:
- prometheus
- loki
prometheus:
image: prom/prometheus:v2.50.0
command:
- --config.file=/etc/prometheus.yaml
- --web.enable-remote-write-receiver
- --enable-feature=exemplar-storage
- --enable-feature=promql-experimental-functions
volumes:
- ./observability-config/prometheus.yaml:/etc/prometheus.yaml
- ./observability-config/prometheus-data:/prometheus
ports:
- "9090:9090"