Skip to content

Commit

Permalink
Separate volume for each node's container config
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Aug 8, 2022
1 parent 6c8a346 commit 8dbffce
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions nix/workbench/app.sh
Expand Up @@ -36,17 +36,35 @@ app() {
, networks: [\"cardano-node-network\"]
, ports: [\"\(.value.port):\(.value.port)\"]
, volumes: [
\"DATA_DIR:/var/cardano-node/run\"
\"DATA_DIR-\(.value.name):/var/cardano-node\"
]
, environment: [
\"DATA_DIR=/var/cardano-node/run\"
\"DATA_DIR=/var/cardano-node\"
, \"NODE_CONFIG=/var/cardano-node/config.json\"
, \"NODE_TOPOLOGY=/var/cardano-node/topology.json\"
]
}
}
)
)
, \"networks\": {\"cardano-node-network\": {}}
, \"volumes\": {\"DATA_DIR\": {\"external\": true} }
, volumes:
(
.
| with_entries (
{
key: \"DATA_DIR-\(.value.name)\"
, value: {
external: false
, driver_opts: {
type: \"none\"
, o: \"bind\"
, device: \"$global_rundir_def/current/\(.value.name)\"
}
}
}
)
)
}" $nodespecs;;

* ) usage_app;; esac
Expand Down

0 comments on commit 8dbffce

Please sign in to comment.