forked from grafana/clickhouse-datasource
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (62 loc) · 1.92 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (62 loc) · 1.92 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
services:
grafana:
container_name: grafana
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-latest}
# 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
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
# networks:
# - grafana
# clickhouse-server:
# image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-latest-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
# environment:
# - CLICKHOUSE_SKIP_USER_SETUP=1
# networks:
# - grafana
# test-data-loader:
# image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-latest-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: