nix-config/hosts/franz/arion/passwords/arion-compose.nix

33 lines
843 B
Nix
Raw Normal View History

2024-03-07 16:47:24 +01:00
{pkgs, ...}: {
project.name = "passwords";
networks.dmz = {
name = "dmz";
external = true;
};
services = {
vaultwarden.service = {
2024-03-31 22:05:29 +02:00
image = "vaultwarden/server:1.30.5";
2024-03-07 16:47:24 +01:00
container_name = "vaultwarden";
labels = {
"traefik.enable" = "true";
"traefik.http.routers.vaultwarden.entrypoints" = "websecure";
"traefik.http.routers.vaultwarden.rule" = "Host(`vaultwarden.ghoscht.com`)";
"traefik.http.routers.vaultwarden.tls" = "true";
"traefik.http.routers.vaultwarden.tls.certresolver" = "letsencrypt";
};
volumes = [
2024-03-31 22:05:29 +02:00
"/storage/dataset/docker/passwords/vaultwarden_data/:/data"
2024-03-07 16:47:24 +01:00
];
environment = {
DOMAIN = "http://vaultwarden.ghoscht.com";
};
restart = "always";
networks = [
"dmz"
];
};
};
}