-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
64 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
services:
raven-server:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8080:8080"
- "9090:9090"
environment:
RUST_LOG: raven_server=info
volumes:
- raven-data:/var/lib/raven
- ./config/server.toml:/etc/raven/server.toml:ro
depends_on:
victoriametrics:
condition: service_healthy
clickhouse:
condition: service_healthy
# healthcheck:
# test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/readyz || exit 1"]
# interval: 10s
# timeout: 3s
# retries: 12
# start_period: 20s
victoriametrics:
image: victoriametrics/victoria-metrics:v1.137.0
restart: unless-stopped
command:
- -storageDataPath=/victoria-metrics-data
- -retentionPeriod=30d
volumes:
- vm-data:/victoria-metrics-data
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8428/health | grep -qi ok || exit 1"]
interval: 10s
timeout: 3s
retries: 20
start_period: 10s
clickhouse:
image: clickhouse/clickhouse-server:26.2-alpine
restart: unless-stopped
environment:
CLICKHOUSE_DB: raven
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1"
volumes:
- ch-data:/var/lib/clickhouse
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD-SHELL", "clickhouse-client --query 'SELECT 1' >/dev/null 2>&1 || exit 1"]
interval: 10s
timeout: 5s
retries: 20
start_period: 15s
volumes:
raven-data:
vm-data:
ch-data: