Merge pull request #279 from trustgraph-ai/add-memgraph-volume

Added memgraph volume
This commit is contained in:
Jack Colquitt 2025-01-23 15:46:47 -08:00 committed by GitHub
commit 477fd1420e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,8 @@ local images = import "values/images.jsonnet";
create:: function(engine) create:: function(engine)
local vol = engine.volume("memgraph").with_size("20G");
local container = local container =
engine.container("memgraph") engine.container("memgraph")
.with_image(images.memgraph_mage) .with_image(images.memgraph_mage)
@ -16,7 +18,8 @@ local images = import "values/images.jsonnet";
.with_limits("1.0", "1000M") .with_limits("1.0", "1000M")
.with_reservations("0.5", "1000M") .with_reservations("0.5", "1000M")
.with_port(7474, 7474, "api") .with_port(7474, 7474, "api")
.with_port(7687, 7687, "api2"); .with_port(7687, 7687, "api2")
.with_volume_mount(vol, "/var/lib/memgraph");
local containerSet = engine.containers( local containerSet = engine.containers(
"memgraph", [ container ] "memgraph", [ container ]
@ -28,6 +31,7 @@ local images = import "values/images.jsonnet";
.with_port(7687, 7687, "api2"); .with_port(7687, 7687, "api2");
engine.resources([ engine.resources([
vol,
containerSet, containerSet,
service, service,
]) ])
@ -65,4 +69,3 @@ local images = import "values/images.jsonnet";
}, },
} }