Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (61 loc) · 1.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (61 loc) · 1.56 KB
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
version: '3.8'
services:
prometheus:
build:
context: ./prometheus
dockerfile: dockerfile
user: root # required for data persistence
ports:
- "9090:9090"
volumes:
- prometheus_data:/prometheus
loki:
build:
context: ./loki
dockerfile: dockerfile
user: root # required for data persistence
ports:
- "3100:3100"
volumes:
- loki_data:/loki
tempo:
build:
context: ./tempo
dockerfile: dockerfile
user: root # required for data persistence
ports:
- "3200:3200" # http server for querying
- "4317:4317" # grpc server for ingest
- "4318:4318" # http server for ingest
volumes:
- tempo_data:/var/tempo
grafana:
build:
context: ./grafana
dockerfile: dockerfile
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=yourpassword123
- GF_DEFAULT_INSTANCE_NAME=Grafana
- GF_INSTALL_PLUGINS=grafana-simple-json-datasource,grafana-piechart-panel,grafana-worldmap-panel,grafana-clock-panel
- LOKI_INTERNAL_URL=http://loki:3100
- PROMETHEUS_INTERNAL_URL=http://prometheus:9090
- TEMPO_INTERNAL_URL=http://tempo:3200
example_api:
build:
context: ./examples/api
dockerfile: dockerfile
ports:
- "9091:9091"
environment:
- TEMPO_URL=http://tempo:4318
- TEMPO_SERVICE_NAME=example_api
volumes:
prometheus_data:
loki_data:
grafana_data:
tempo_data: