-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.default.yml
48 lines (46 loc) · 1.33 KB
/
docker-compose.default.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
services:
clickhouse:
image: "docker.io/clickhouse/clickhouse-server:24.11.1.2557-alpine"
ports:
- 8123:8123 # HTTP interface
- 9000:9000 # Native interface
ulimits:
nofile: 262144
# healthcheck:
# test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
volumes:
- "clickhouse_data:/var/lib/clickhouse"
environment:
CLICKHOUSE_USER: "clickhouse"
CLICKHOUSE_PASSWORD: "password"
CLICKHOUSE_DB: "${PRISME_CLICKHOUSE_DB}"
networks:
default:
aliases:
- "clickhouse.localhost"
grafana:
image: "docker.io/grafana/grafana-oss:11.4.0"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1
timeout: 30s
ports:
- 3000:3000
user: "root:root"
volumes:
- "grafana_data:/data"
environment:
# https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/
GF_INSTALL_PLUGINS: "grafana-clickhouse-datasource, mckn-funnel-panel"
GF_LOG_LEVEL: "debug"
# [database]
GF_DATABASE_TYPE: "sqlite3"
GF_DATABASE_PATH: "/data/grafana.db"
# [users]
GF_USERS_DEFAULT_THEME: "system"
networks:
default:
aliases:
- "grafana.localhost"
volumes:
grafana_data:
clickhouse_data: