forked from m99coder/cloud-native-enterprise-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
77 lines (72 loc) · 2.11 KB
/
docker-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
version: "3"
services:
tempo:
image: grafana/tempo:latest
container_name: m99coder-tempo
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./observability/tempo.yaml:/etc/tempo.yaml
- ./observability/data:/tmp/tempo
ports:
# Jaeger ingest
- "14268"
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
loki:
image: grafana/loki:2.3.0
container_name: m99coder-loki
command: [ "-config.file=/etc/loki/local-config.yaml" ]
ports:
# Loki needs to be exposed so it receives logs
- "3100:3100"
environment:
# send traces to Tempo
- JAEGER_AGENT_HOST=tempo
- JAEGER_ENDPOINT=http://tempo:14268/api/traces
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
promtail:
image: grafana/promtail:latest
container_name: m99coder-promtail
volumes:
- ./observability/promtail.yaml:/etc/promtail/promtail-config.yaml
- ./logs/:/usr/api/data/
command: -config.file=/etc/promtail/promtail-config.yaml
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
prometheus:
image: prom/prometheus:latest
container_name: m99coder-prometheus
command: [ "--config.file=/etc/prometheus.yaml" ]
volumes:
- ./observability/prometheus.yaml:/etc/prometheus.yaml
ports:
- "9090:9090"
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
grafana:
image: grafana/grafana:8.1.6
container_name: m99coder-grafana
volumes:
- ./observability/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_USERS_DEFAULT_THEME=light
ports:
- "3000:3000"
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"