mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-03 15:01:00 +02:00
git-subtree-dir: ai-context/trustgraph-templates git-subtree-split: 42a5fd1b678f32be378062e30451e2052ccb95dd
70 lines
2 KiB
Jsonnet
70 lines
2 KiB
Jsonnet
local images = import "values/images.jsonnet";
|
|
|
|
{
|
|
|
|
"memgraph" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local vol = engine.volume("memgraph").with_size("20G");
|
|
|
|
local container =
|
|
engine.container("memgraph")
|
|
.with_image(images.memgraph_mage)
|
|
.with_environment({
|
|
MEMGRAPH: "--storage-properties-on-edges=true --storage-enable-edges-metadata=true"
|
|
})
|
|
.with_limits("1.0", "1000M")
|
|
.with_reservations("0.5", "1000M")
|
|
.with_port(7474, 7474, "api")
|
|
.with_port(7687, 7687, "api2")
|
|
.with_volume_mount(vol, "/var/lib/memgraph");
|
|
|
|
local containerSet = engine.containers(
|
|
"memgraph", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.service(containerSet)
|
|
.with_port(7474, 7474, "api")
|
|
.with_port(7687, 7687, "api2");
|
|
|
|
engine.resources([
|
|
vol,
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
"memgraph-lab" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("lab")
|
|
.with_image(images.memgraph_lab)
|
|
.with_environment({
|
|
QUICK_CONNECT_MG_HOST: "memgraph",
|
|
QUICK_CONNECT_MG_PORT: "7687",
|
|
})
|
|
.with_limits("1.0", "512M")
|
|
.with_reservations("0.5", "512M")
|
|
.with_port(3010, 3000, "http");
|
|
|
|
local containerSet = engine.containers(
|
|
"lab", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.service(containerSet)
|
|
.with_port(3010, 3010, "http");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
}
|