Skip to content

Commit

Permalink
imp: add job local service (local peers)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed May 13, 2022
1 parent d7fa58b commit 1291c97
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions nix/cardano/nomadJob/default.nix
Expand Up @@ -83,6 +83,7 @@ in
count = scaling;
service = [
(import ./srv-node.nix {inherit namespace healthChecks;})
(import ./srv-node-local.nix {inherit namespace jobname;})
];
volume = {
"persist-cardano-node-local" = {
Expand Down
17 changes: 17 additions & 0 deletions nix/cardano/nomadJob/srv-node-local.nix
@@ -0,0 +1,17 @@
{
namespace,
jobname,
}: {
address_mode = "auto";
check = [
{
address_mode = "host";
interval = "1m0s";
port = "node";
timeout = "2s";
type = "tcp";
}
];
name = "${namespace}-${jobname}-node";
port = "node";
}

0 comments on commit 1291c97

Please sign in to comment.