-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.72 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.72 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
services:
clickhouse:
image: clickhouse/clickhouse-server:25.3
environment:
CLICKHOUSE_DB: default
CLICKHOUSE_USER: app
CLICKHOUSE_PASSWORD: app
ports:
- "8123:8123"
- "9000:9000"
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./migrations/001_init.sql:/docker-entrypoint-initdb.d/001_init.sql:ro
healthcheck:
test: ["CMD", "clickhouse-client", "--query", "SELECT 1"]
interval: 5s
timeout: 5s
retries: 12
app:
build:
context: .
dockerfile: Dockerfile
depends_on:
clickhouse:
condition: service_healthy
environment:
HTTP_PORT: "8080"
CLICKHOUSE_DSN: "clickhouse://app:app@clickhouse:9000/default"
BATCH_SIZE: "100"
FLUSH_INTERVAL: "5s"
LOG_LEVEL: "info"
ports:
- "8080:8080"
prometheus:
image: prom/prometheus:v3.2.1
depends_on:
app:
condition: service_started
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
grafana:
image: grafana/grafana:11.5.2
depends_on:
prometheus:
condition: service_started
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_USERS_ALLOW_SIGN_UP: "false"
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
volumes:
clickhouse_data:
prometheus_data:
grafana_data: