-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
153 lines (139 loc) · 3.72 KB
/
docker-compose.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
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
# some parts originally taken from https://github.com/grafana/tempo/tree/main/example/docker-compose/local
version: "3"
volumes:
tempo-data:
loki-data:
prometheus-data:
services:
#---------------------------------------------
#
# Observability stack
#
#---------------------------------------------
promtail:
image: grafana/promtail:2.8.7
container_name: promtail
command: [ "-config.file=/etc/promtail.yml" ]
volumes:
- ./config/promtail.yml:/etc/promtail.yml
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9080:9080" # promtail
labels:
app: infra
loki:
container_name: loki
image: grafana/loki:2.8.7
# image: grafana/loki:main
command: [ "-config.file=/etc/loki/loki.yml" ]
volumes:
- ./config/loki.yml:/etc/loki/loki.yml
- loki-data:/loki # loki user is unable to create top-level directory like /data
# ports:
# - "3100:3100" # loki
# - "9095:9095" # loki grpc
# - "9096:9096" # loki http
labels:
app: infra
tempo:
container_name: tempo
image: grafana/tempo:2.3.1
# image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yml" ]
volumes:
- ./config/tempo.yml:/etc/tempo.yml
- tempo-data:/tmp/data
ports:
- "3200:3200" # tempo
# - "9095:9095" # tempo grpc
# - "4317:4317" # otlp grpc
# - "4318:4318" # otlp http
labels:
app: infra
prometheus:
container_name: prometheus
image: prom/prometheus:v2.48.1
command:
- --config.file=/etc/prometheus.yml
- --web.enable-remote-write-receiver # so tempo can write generated metrics
- --enable-feature=exemplar-storage
- --storage.tsdb.path=/tmp/data
volumes:
- ./config/prometheus.yml:/etc/prometheus.yml
# - prometheus-data:/tmp/data # prometheus user is unable to create top-level directory like /data
ports:
- "9090:9090" # prometheus
labels:
app: infra
grafana:
container_name: grafana
image: grafana/grafana:10.2.3
# image: grafana/grafana:main
volumes:
- ./config/datasources/:/etc/grafana/provisioning/datasources/
- ./config/dashboards/:/etc/grafana/provisioning/dashboards/
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_FEATURE_TOGGLES_ENABLE=traceQLStreaming metricsSummary traceToMetrics correlations # https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/feature-toggles/
ports:
- "3000:3000" # grafana
labels:
app: infra
#---------------------------------------------
#
# Application stack
#
#---------------------------------------------
boomer-server:
container_name: boomer-server
image: boomer
command: [
"server"
]
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080" # GRPC
- "2223:2223" # metrics
labels:
app: boomer
boomer-worker:
container_name: boomer-worker
image: boomer
command: [
"worker"
]
build:
context: .
dockerfile: Dockerfile
ports:
- "2224:2223" # metrics
labels:
app: boomer
nats:
container_name: nats
image: nats:2.10.7
labels:
app: nats
ports:
- "4222:4222" # NATS
- "8222:8222" # NATS Management
nats-exporter:
container_name: nats-exporter
image: natsio/prometheus-nats-exporter:latest
command: [
"-varz",
"-serverz",
"-connz",
"-routez",
"-subz",
"http://nats:8222",
]
labels:
app: nats
ports:
- "7777:7777" # metrics