diff --git a/vaultwarden/env.example b/vaultwarden/env.example new file mode 100644 index 0000000..bd6244c --- /dev/null +++ b/vaultwarden/env.example @@ -0,0 +1,17 @@ +# base config +DOMAIN=https://vw.example.com +SIGNUPS_ALLOWED=false +INVITATIONS_ALLOWED=false + +# smtp config +SMTP_HOST=smtp.example.com +SMTP_FROM=mail@example.com +SMTP_FROM_NAME=Vaultwarden +SMTP_USERNAME=username +SMTP_PASSWORD= +SMTP_TIMEOUT=15 +SMTP_SECURITY=force_tls +SMTP_PORT=465 + +# rocket http configuration +ROCKET_PORT=7777 diff --git a/vaultwarden/vaultwarden.container b/vaultwarden/vaultwarden.container new file mode 100644 index 0000000..c0b6999 --- /dev/null +++ b/vaultwarden/vaultwarden.container @@ -0,0 +1,22 @@ +[Unit] +Description=VaultWarden Container + +[Container] +ContainerName=vaultwarden +Image=ghcr.io/dani-garcia/vaultwarden:alpine + +# Enable auto-update container +AutoUpdate=registry +EnvironmentFile=./.env + +Network=host + +Volume=%h/podman/vaultwarden:/data + +[Service] +EnvironmentFile=%h/.config/containers/systemd/vaultwarden/.env +Restart=always +TimeoutStartSec=300 + +[Install] +WantedBy=default.target