generated from grafana/grafana-starter-datasource-backend
-
Notifications
You must be signed in to change notification settings - Fork 66
/
docker-compose.yml
62 lines (59 loc) · 1.74 KB
/
docker-compose.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
services:
grafana:
container_name: grafana
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-11.1.0}
# remove the following line when developing to have backend debugger
development: false
ports:
- 3000:3000
volumes:
- ./dist:/var/lib/grafana/plugins/grafana-clickhouse-datasource
- ./provisioning:/etc/grafana/provisioning
- .:/root/grafana-clickhouse-datasource
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
networks:
- grafana
clickhouse-server:
image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-24.7-alpine}
container_name: clickhouse-server
ports:
- 8123:8123
- 9000:9000
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD", "clickhouse-client", "--host", "clickhouse-server", "--query", "SELECT 1"]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
networks:
- grafana
test-data-loader:
image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-24.7-alpine}
container_name: test-data-loader
entrypoint: ["clickhouse-client", "--host", "clickhouse-server", "--queries-file", "/dev/shm/property-prices.sql"]
depends_on:
clickhouse-server:
condition: service_healthy
restart: on-failure
volumes:
- ./tests/fixtures/property-prices.sql:/dev/shm/property-prices.sql
networks:
- grafana
networks:
grafana: