nixos-configs/configurations/nos/modules/docker/vaultwarden/compose.nix
matt1432 6ca0d7248b
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename some flake attr directories
2024-12-16 15:51:41 -05: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"];
};
};
};
}