-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.32 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
services:
greptimedb:
image: greptime/greptimedb:latest
container_name: greptimedb_dev
command: standalone start --http-addr=0.0.0.0:4000 --rpc-bind-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002
ports:
- 4000:4000
- 4001:4001
- 4002:4002
networks:
- grafana
grafana:
container_name: grafana
build:
context: ./.config
args:
grafana_image: grafana/grafana # Assuming you're using the OSS image
grafana_version: 11.4.0
development: false
ports:
- 3000:3000
volumes:
- ./dist:/var/lib/grafana/plugins/info8fcc-greptimedb-datasource # Mount your GreptimeDB plugin
- ./provisioning:/etc/grafana/provisioning
- .:/root/info8fcc-greptimedb-datasource # Mount your GreptimeDB plugin source
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:3000/login"]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
environment:
- GF_LOG_LEVEL=debug
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=true # Allow your local plugin
- GF_INSTALL_PLUGINS=grafana-clickhouse-datasource # Install the ClickHouse plugin
- GF_DEFAULT_APP_MODE=development # Recommended for local plugin development
cap_add:
- SYS_PTRACE
networks:
- grafana
networks:
grafana: