mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-03 23:11:00 +02:00
git-subtree-dir: ai-context/trustgraph-templates git-subtree-split: 42a5fd1b678f32be378062e30451e2052ccb95dd
38 lines
969 B
Jsonnet
38 lines
969 B
Jsonnet
local images = import "values/images.jsonnet";
|
|
|
|
{
|
|
|
|
"falkordb" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local vol = engine.volume("falkordb").with_size("20G");
|
|
|
|
local container =
|
|
engine.container("falkordb")
|
|
.with_image(images.falkordb)
|
|
.with_limits("1.0", "768M")
|
|
.with_reservations("0.5", "768M")
|
|
.with_port(6379, 6379, "api")
|
|
.with_port(3010, 3000, "ui")
|
|
.with_volume_mount(vol, "/data");
|
|
|
|
local containerSet = engine.containers(
|
|
"falkordb", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.service(containerSet)
|
|
.with_port(6379, 6379, "api")
|
|
.with_port(3010, 3010, "ui");
|
|
|
|
engine.resources([
|
|
vol,
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
}
|
|
|