Switch remaining services from nomad host volumes to docker volumes.

This commit is contained in:
2023-07-21 06:59:32 +01:00
parent 0e7a34a341
commit 496e3c9e44
4 changed files with 9 additions and 39 deletions

View File

@@ -9,6 +9,7 @@ in
enable = true;
package = pkgs.unstable.nomad;
# true breaks at least CSI volumes
# TODO: consider fixing
dropPrivileges = false;
settings = {
@@ -21,11 +22,6 @@ in
interface = "tailscale0";
cidr = "100.64.0.0/10";
};
host_volume = {
sites.path = "/data/compute/sites";
config.path = "/data/compute/config";
appdata-grafana.path = "/data/compute/appdata/grafana";
};
};
server = {
@@ -44,6 +40,7 @@ in
plugin.docker.config = {
allow_privileged = true;
# for keepalived, though only really needing "NET_ADMIN","NET_BROADCAST","NET_RAW" on top of default
# TODO: trim this down
allow_caps = ["all"];
volumes.enabled = true;
};