mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-26 00:46:22 +02:00
42 lines
986 B
Jsonnet
42 lines
986 B
Jsonnet
|
|
local base = import "base.jsonnet";
|
||
|
|
local images = import "images.jsonnet";
|
||
|
|
{
|
||
|
|
volumes +: {
|
||
|
|
"prometheus-data": {},
|
||
|
|
"grafana-storage": {},
|
||
|
|
},
|
||
|
|
services +: {
|
||
|
|
prometheus: base + {
|
||
|
|
image: images.prometheus,
|
||
|
|
ports: [
|
||
|
|
"9090:9090",
|
||
|
|
],
|
||
|
|
volumes: [
|
||
|
|
"./prometheus:/etc/prometheus",
|
||
|
|
"prometheus-data:/prometheus",
|
||
|
|
],
|
||
|
|
},
|
||
|
|
grafana: base + {
|
||
|
|
image: images.grafana,
|
||
|
|
ports: [
|
||
|
|
"3000:3000",
|
||
|
|
],
|
||
|
|
volumes: [
|
||
|
|
"grafana-storage:/var/lib/grafana",
|
||
|
|
"./grafana/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml",
|
||
|
|
"./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml",
|
||
|
|
"./grafana/dashboard.json:/var/lib/grafana/dashboards/dashboard.json",
|
||
|
|
],
|
||
|
|
environment: {
|
||
|
|
// GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin",
|
||
|
|
// GF_AUTH_ANONYMOUS_ENABLED: "true",
|
||
|
|
// GF_ORG_ROLE: "Admin",
|
||
|
|
GF_ORG_NAME: "trustgraph.ai",
|
||
|
|
// GF_SERVER_ROOT_URL: "https://example.com",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|
||
|
|
|
||
|
|
|