Installing¶
Scope: the three shapes a Vaultwarden install takes, what each one really is, the folder everything lives in, and the settings you choose before first run. No account is created here; that is chapter 3, deliberately — the order matters in chapter 5.
What you are installing¶
One program. The vaultwarden binary is
a single file (46.5 MB in the lab's
1.37.4) that contains the server, its API,
the admin pages, and its database
machinery. It wants:
- a data folder it owns outright — its database, its signing key, and everything else it keeps (chapter 7 inventories one);
- a port to listen on (80 unless
ROCKET_PORTsays otherwise; the lab used 8222 and its neighbours to keep several instances apart); - optionally, the web vault: the
browser app, which is a separate
build by a sister project. The binary
alone has none — run
vaultwarden --versionin the lab and it answers with the plainest sentence in this guide (t01):
$ vaultwarden --version
Vaultwarden 1.37.4
Web-Vault Version file missing
Point it at a folder holding the web vault and the same command reports both versions (t24: server 1.37.4, web vault 2026.7.0). The phone, desktop, and extension clients are separate again — you install those from Bitwarden's usual places, because they are Bitwarden's.
Shape one: the container (most readers)¶
Vaultwarden publishes its builds in
exactly one place: the Docker image
vaultwarden/server. There are no
binaries attached to the GitHub releases
— the lab checked the release records for
1.37.2, 1.37.3, and 1.37.4 and found the
asset lists empty; the image is the
release. The image bundles the web vault,
which is why most readers never learn it
is separate.
examples/docker-compose.yml is the
household shape: the image, a named data
folder on the host (./vw-data, mounted
at /data inside), and the port
published on localhost only, because a
reverse proxy (chapter 4) is the public
face. Bring it up:
docker compose up -d
docker compose logs -f # watch the banner
Check: the startup banner (t04) names the
version and — on a first run with a
plain-text admin token, or none of the
lab's restraint — prints its notice about
exactly that. It creates the data folder's
contents as it starts: a signing key
(rsa_key.pem, "created correctly" in
the log) and the database.
This guide's lab could not run the
container: the build machine's Docker
daemon stopped mid-pull and didn't come
back. So the lab did the next most honest
thing — fetched the same image's layers
from the registry, lifted the binary out
unmodified, and ran it for every test.
Everything chapters 3–8 claim was proven
against that binary. The compose file
itself is therefore the one artefact here
that is documented rather than executed,
and criteria.md keeps it in that column.
Shape two: the bare binary¶
Take the binary out of the image (or a
package that did it for you), put the web
vault beside it if you want the browser
app, and run it under systemd with an
environment file — examples/vaultwarden.env
is the shape, specimen values and all.
This is the lab's own arrangement,
transplanted:
DATA_FOLDER=/srv/vaultwarden/data
ROCKET_PORT=8222
ROCKET_ADDRESS=127.0.0.1
WEB_VAULT_FOLDER=/srv/vaultwarden/web-vault
The binary reads its whole configuration
from the environment (and from a
config.json the admin page can write —
chapter 5). One practical warning the lab
earned: run the binary with libraries it
was built against. The image's binary on
the build host's newer system libraries
crashed instantly ("stack smashing
detected"); under its own image's loader
and libraries it has not crashed since.
Containers exist partly to spare you
exactly this paragraph.
Shape three: somebody else's package¶
Distributions and NAS vendors package Vaultwarden variously. The trade is the usual one: easier installation, somebody else's choices about version and data folder, and an update cadence you don't control — which matters for this server more than most (chapter 8). Whichever shape you choose, learn two facts about your install before chapter 3: where the data folder is, and how the service is restarted. Every later chapter needs both.
The settings that exist before anyone logs in¶
Four decisions belong to installation, not to use:
| Setting | The choice | Chapter |
|---|---|---|
DOMAIN |
The public address, scheme included. Set it now, set it true. | 4 |
SIGNUPS_ALLOWED |
true for the first evening, false ever after. |
5 |
ADMIN_TOKEN |
An Argon2 PHC string, generated before first run if you can. | 5 |
DATA_FOLDER |
Somewhere your backups already reach, or soon will. | 7 |
That is the whole install. Everything else — mail for invitations and account recovery mails, push notifications, SSO — is optional machinery the project's wiki documents; this guide adds none of it, because a household vault needs none of it to be complete.