trustgraph/templates/stores/neo4j.jsonnet
cybermaggedon c603caa3cc
Fix neo4j: container doesn't start currently (#264)
* Adjust Neo4j memory settings to avoid startup fail

* Upgrade Neo4j to community 5.26.0

* Add Neo4j indexes
2025-01-11 12:44:49 +00:00

47 lines
1.4 KiB
Jsonnet

local base = import "base/base.jsonnet";
local images = import "values/images.jsonnet";
{
"neo4j" +: {
create:: function(engine)
local vol = engine.volume("neo4j").with_size("20G");
local container =
engine.container("neo4j")
.with_image(images.neo4j)
.with_environment({
NEO4J_AUTH: "neo4j/password",
NEO4J_server_memory_pagecache_size: "512m",
NEO4J_server_memory_heap_max__size: "512m",
// NEO4J_server_bolt_listen__address: "0.0.0.0:7687",
// NEO4J_server_default__listen__address: "0.0.0.0",
// NEO4J_server_http_listen__address: "0.0.0.0:7474",
})
.with_limits("1.0", "1536M")
.with_reservations("0.5", "1536M")
.with_port(7474, 7474, "api")
.with_port(7687, 7687, "api2")
.with_volume_mount(vol, "/data");
local containerSet = engine.containers(
"neo4j", [ container ]
);
local service =
engine.service(containerSet)
.with_port(7474, 7474, "api")
.with_port(7687, 7687, "api2");
engine.resources([
vol,
containerSet,
service,
])
},
}