mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-24 12:41:02 +02:00
Merge pull request #279 from trustgraph-ai/add-memgraph-volume
Added memgraph volume
This commit is contained in:
commit
477fd1420e
1 changed files with 5 additions and 2 deletions
|
|
@ -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";
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue