-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (56 loc) · 1.52 KB
/
docker-compose.yaml
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
---
version: "3"
services:
binge:
build: .
container_name: binge
hostname: binge-0.localhost
volumes:
- ./vector/vector.toml:/etc/vector/vector.toml:ro
depends_on:
clickhouse:
condition: service_healthy
clickhouse:
image: clickhouse/clickhouse-server:22.10
expose:
- "8123"
- "9000"
- "9009"
hostname: clickhouse-0.localhost
environment:
- CLICKHOUSE_DB=binge
- CLICKHOUSE_USER=binge
- CLICKHOUSE_PASSWORD=Qi35yP1Km
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
healthcheck:
test: wget -nv -t1 --spider http://localhost:8123 || exit 1
start_period: 5s
interval: 10s
timeout: 10s
retries: 5
volumes:
- ./sql/clickhouse.sql:/docker-entrypoint-initdb.d/clickhouse.sql:ro
grafana:
image: grafana/grafana-enterprise:9.2.2-ubuntu
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_INSTALL_PLUGINS=grafana-clickhouse-datasource
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_DASHBOARDS_MIN_REFRESH_INTERVAL=1s
hostname: grafana-0.localhost
volumes:
- ./docker/grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/:/var/lib/grafana/dashboards/:ro
ports:
- "3001:3000"
depends_on:
clickhouse:
condition: service_healthy