mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-27 09:26:22 +02:00
Co-authored-by: Avi Avni <avi.avni@gmail.com>
This commit is contained in:
parent
8c1b468eb0
commit
a4afff59a0
21 changed files with 664 additions and 6 deletions
39
templates/stores/falkordb.jsonnet
Normal file
39
templates/stores/falkordb.jsonnet
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
local base = import "base/base.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(3000, 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(3000, 3000, "ui");
|
||||
|
||||
engine.resources([
|
||||
vol,
|
||||
containerSet,
|
||||
service,
|
||||
])
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue