From 605ade84f07250e43417e0ced304a71fc6b62182 Mon Sep 17 00:00:00 2001 From: JackColquitt Date: Thu, 23 Jan 2025 15:29:16 -0800 Subject: [PATCH] Added memgraph volume --- templates/stores/memgraph.jsonnet | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/stores/memgraph.jsonnet b/templates/stores/memgraph.jsonnet index 75faf5f0..70ad127a 100644 --- a/templates/stores/memgraph.jsonnet +++ b/templates/stores/memgraph.jsonnet @@ -7,6 +7,8 @@ local images = import "values/images.jsonnet"; create:: function(engine) + local vol = engine.volume("memgraph").with_size("20G"); + local container = engine.container("memgraph") .with_image(images.memgraph_mage) @@ -16,7 +18,8 @@ local images = import "values/images.jsonnet"; .with_limits("1.0", "1000M") .with_reservations("0.5", "1000M") .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( "memgraph", [ container ] @@ -28,6 +31,7 @@ local images = import "values/images.jsonnet"; .with_port(7687, 7687, "api2"); engine.resources([ + vol, containerSet, service, ]) @@ -65,4 +69,3 @@ local images = import "values/images.jsonnet"; }, } -