nixos-configs/devices/nos/modules/docker/vaultwarden/compose.nix
matt1432 59d2205e7a
All checks were successful
Discord / discord commits (push) Has been skipped
fix(docker): add required changes to make every container work
2024-07-24 20:52:32 -04:00

35 lines
793 B
Nix

{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
rwPath = rwDataDir + "/vaultwarden";
in {
khepri.compositions."vaultwarden" = {
networks.proxy_net = {external = true;};
services = {
"public-vault" = {
image = import ./images/vaultwarden.nix pkgs;
restart = "always";
ports = ["8781:80"];
volumes = ["${rwPath}/public-data:/data"];
environment.WEBSOCKET_ENABLED = "true";
networks = ["proxy_net"];
};
"private-vault" = {
image = import ./images/vaultwarden.nix pkgs;
restart = "always";
ports = ["8780:80"];
volumes = ["${rwPath}/private-data:/data"];
environment.WEBSOCKET_ENABLED = "true";
networks = ["proxy_net"];
};
};
};
}