-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcluster.yaml
104 lines (99 loc) · 3.04 KB
/
cluster.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
fdb:
container_name: demo-foundationdb
image: foundationdb/foundationdb:7.3.57
healthcheck:
test: ["CMD", "nc", "-zv", "localhost", "4500"]
interval: 3s
timeout: 1s
retries: 10
networks:
- datalayers-network
fdb-sidecar:
container_name: demo-fdb-sidecar
image: datalayers/datalayers-exporter:nightly
healthcheck:
test: ["CMD", "fdbcli", "-exec", "status"]
interval: 3s
timeout: 1s
retries: 10
volumes:
- ./fdb.cluster:/etc/foundationdb/fdb.cluster
depends_on:
fdb:
condition: service_healthy
entrypoint:
- /bin/bash
- -c
- |
fdbcli --exec "configure new single ssd-rocksdb-v1"
networks:
- datalayers-network
datalayers:
image: datalayers/datalayers:nightly
environment:
- DATALAYERS_SERVER__AUTH__USERNAME=admin
- DATALAYERS_SERVER__AUTH__PASSWORD=public
- DATALAYERS_SERVER__STANDALONE=false
volumes:
- ./fdb.cluster:/etc/foundationdb/fdb.cluster
depends_on:
fdb-sidecar:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "dlsql", "-u", "admin", "-p", "public"]
interval: 5s
timeout: 5s
retries: 12
entrypoint:
- bash
- -c
- |
export DATALAYERS_NODE__NAME="$(hostname -i):8366"
datalayers
networks:
- datalayers-network
prometheus:
container_name: demo-prometheus
image: prom/prometheus:latest
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=15d
- --storage.tsdb.retention.size=20GB
networks:
- datalayers-network
grafana:
container_name: demo-grafana
image: grafana/grafana:latest
environment:
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=datalayersio-datasource
volumes:
# https://grafana.com/docs/grafana/latest/setup-grafana/configure-docker/#default-paths
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datalayersio-datasource.yaml
- ./grafana/providers.yaml:/etc/grafana/provisioning/dashboards/datalayersio-datasource.yaml
- ./grafana/dashboard-configured.json:/var/lib/grafana/dashboards/datalayersio-datasource/dashboard.json
- ./grafana/datalayersio-datasource:/var/lib/grafana/plugins/datalayersio-datasource
- ./grafana/foundationdb-configured.json:/var/lib/grafana/dashboards/datalayersio-datasource/foundationdb-dashboard.json
networks:
- datalayers-network
web-proxy:
container_name: demo-proxy
image: nginx:latest
ports:
- "28361:8361" # Datalayers HTTP
- "28360:8360" # Flight SQL
- "30000:3000" # Grafana
- "29090:9090" # Prometheus
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
datalayers:
condition: service_healthy
networks:
- datalayers-network
networks:
datalayers-network:
driver: bridge