Menu

Self-host Vaultwarden on a VPS: Docker Compose, Caddy HTTPS, locked sign-ups and real backups
📰

Self-host Vaultwarden on a VPS: Docker Compose, Caddy HTTPS, locked sign-ups and real backups

DEV Community: docker·PhantomVPS·about 18 hours ago
#v9kXplJg
#devtodocker#devto#dev#sudo#vaultwarden
Long article (1218 words) — no AI summary yet.
Reading 0:00
15s threshold

Vaultwarden is a lightweight server that speaks the Bitwarden API, so the official Bitwarden apps and browser extensions work with it. It runs happily in a small amount of RAM, which makes it a good fit for a VPS. Your vault is encrypted on your devices before it ever reaches the server, but the server still holds everything you care about, so treat it with care.

This guide covers Ubuntu 24.04 and Debian 12: install, HTTPS, the settings that matter, and backups you have actually restored.

Prerequisites

A VPS with root access and a domain name, such as vault.example.com , with an A (and AAAA) record pointing at it.

A basic hardened server: SSH keys, a firewall, automatic security updates.

Docker Engine and the Compose plugin from Docker's own repository:

sudo apt update && sudo apt install -y ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.