-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
169 lines (161 loc) · 4.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
169 lines (161 loc) · 4.42 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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
services:
hyperbytedb:
build:
context: ..
dockerfile: hyperbytedb/Dockerfile
container_name: hyperbytedb
ports:
- "8086:8086"
volumes:
- hyperbytedb-data:/var/lib/hyperbytedb
environment:
# ── Tuning profile: 4 CPU / high memory (≈16 GiB available to HyperbyteDB) ──
HYPERBYTEDB__SERVER__BIND_ADDRESS: "0.0.0.0"
HYPERBYTEDB__SERVER__PORT: "8086"
HYPERBYTEDB__SERVER__MAX_CONCURRENT_QUERIES: "8"
HYPERBYTEDB__FLUSH__INTERVAL_SECS: "5"
HYPERBYTEDB__FLUSH__WAL_SIZE_THRESHOLD_MB: "256"
HYPERBYTEDB__FLUSH__MAX_POINTS_PER_BATCH: "100000"
HYPERBYTEDB__FLUSH__WAL_BATCH_SIZE: "128"
HYPERBYTEDB__FLUSH__WAL_BATCH_DELAY_US: "0"
HYPERBYTEDB__CHDB__POOL_SIZE: "4"
# ── Logging / observability ──
HYPERBYTEDB__LOGGING__LEVEL: "info"
HYPERBYTEDB__LOGGING__FORMAT: "json"
HYPERBYTEDB__STATEMENT_SUMMARY__ENABLED: "true"
networks:
- hyperbytedb-net
depends_on:
alloy:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8086/health"]
interval: 5s
timeout: 3s
retries: 10
start_period: 15s
alloy:
image: grafana/alloy:v1.7.5
container_name: alloy
command:
- run
- /etc/alloy/config.alloy
- --storage.path=/var/lib/alloy/data
- --server.http.listen-addr=0.0.0.0:12345
volumes:
- ./deploy/compose/alloy/config.alloy:/etc/alloy/config.alloy:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- alloy-data:/var/lib/alloy/data
ports:
- "4318:4318"
networks:
- hyperbytedb-net
depends_on:
loki:
condition: service_started
tempo:
condition: service_started
loki:
image: grafana/loki:2.9.8
container_name: loki
command: -config.file=/etc/loki/loki.yaml
volumes:
- ./deploy/compose/loki/loki.yaml:/etc/loki/loki.yaml:ro
- loki-data:/loki
ports:
- "3100:3100"
networks:
- hyperbytedb-net
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3100/ready"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
tempo:
image: grafana/tempo:2.7.2
container_name: tempo
command:
- -config.file=/etc/tempo/tempo.yaml
- -target=all
volumes:
- ./deploy/compose/tempo/tempo.yaml:/etc/tempo/tempo.yaml:ro
- tempo-data:/var/tempo
ports:
- "3200:3200"
- "4317:4317"
networks:
- hyperbytedb-net
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3200/ready"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
telegraf:
image: telegraf:latest
container_name: telegraf
depends_on:
hyperbytedb:
condition: service_healthy
volumes:
- ./deploy/compose/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
environment:
HOST_PROC: /host/proc
HOST_SYS: /host/sys
networks:
- hyperbytedb-net
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./deploy/compose/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.retention.time=30d"
depends_on:
hyperbytedb:
condition: service_healthy
networks:
- hyperbytedb-net
grafana:
image: grafana/grafana:12.4.3
container_name: grafana
ports:
- "3000:3000"
volumes:
- ./deploy/compose/grafana/provisioning:/etc/grafana/provisioning:ro
- ./deploy/compose/grafana/dashboards:/var/lib/grafana/dashboards:ro
- grafana-data:/var/lib/grafana
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: Viewer
depends_on:
hyperbytedb:
condition: service_healthy
prometheus:
condition: service_started
loki:
condition: service_started
tempo:
condition: service_started
networks:
- hyperbytedb-net
volumes:
hyperbytedb-data:
prometheus-data:
grafana-data:
loki-data:
tempo-data:
alloy-data:
networks:
hyperbytedb-net:
driver: bridge