-
Notifications
You must be signed in to change notification settings - Fork 2
/
cluster.yaml
108 lines (101 loc) · 3.03 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
105
106
107
108
version: "3.9"
services:
fdb:
container_name: datalayers-cluster-fdb
image: foundationdb/foundationdb:7.3.27
healthcheck:
test: ["CMD", "nc", "-zv", "localhost", "4500"]
interval: 3s
timeout: 1s
retries: 10
networks:
- datalayers-cluster-network
fdb-helper:
container_name: datalayers-cluster-fdb-helper
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-cluster-network
datalayers:
image: datalayers/datalayers:nightly
environment:
- DATALAYERS_SERVER__AUTH__USERNAME=admin
- DATALAYERS_SERVER__AUTH__PASSWORD=public
- DATALAYERS_STORAGE__TYPE=fdb
- DATALAYERS_SERVER__STANDALONE=false
volumes:
- ./fdb.cluster:/etc/foundationdb/fdb.cluster
depends_on:
fdb-helper:
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-cluster-network
prometheus:
container_name: datalayers-cluster-prometheus
image: prom/prometheus:v2.30.3
ports:
- 29090:9090
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-cluster-network
grafana:
container_name: datalayers-cluster-grafana
image: grafana/grafana:11.0.0
ports:
- 23000:3000
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
networks:
- datalayers-cluster-network
web-proxy:
container_name: datalayers-cluster-proxy
image: nginx:latest
ports:
- "28361:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
datalayers:
condition: service_healthy
networks:
- datalayers-cluster-network
networks:
datalayers-cluster-network:
driver: bridge