Vaultwarden DockerΒΆ
Alternative implementation of the Bitwarden server API in Rust, including the Web Vault.
This project is not associated with the Bitwarden project nor 8bit Solutions LLC.
DockerΒΆ
docker run -d --name vaultwarden -v /vw-data/:/data/ -p 8080:80 vaultwarden/server
Enabling admin pageΒΆ
To enable the admin page, you need to set an authentication token. This token can be anything, but itβs recommended to use a long, randomly generated string of characters, for example running openssl rand -base64 48
. Keep this token secret, this is the password to access the admin area of your server!
docker run -d --name vaultwarden \
-e ADMIN_TOKEN=some_random_token_as_per_above_explanation \
-v /vw-data/:/data/ \
-p 80:80 \
vaultwarden/server
After this, the page will be available in the /admin
subdirectory.
Enabling HTTPSΒΆ
docker run -d --name bitwarden \
-e ROCKET_TLS='{certs="/ssl/certs.pem",key="/ssl/key.pem"}' \
-v /ssl/keys/:/ssl/ \
-v /vw-data/:/data/ \
-p 443:80 \
vaultwarden/server
Backing up dataΒΆ
data
βββ attachments # Each attachment is stored as a separate file under this dir.
β βββ <uuid> # (The attachments dir won't be present if no attachments have been created.)
β βββ <random_id>
βββ config.json # Stores admin page config; only exists if the admin page has been enabled before.
βββ db.sqlite3 # Main SQLite database file.
βββ db.sqlite3-shm # SQLite shared memory file (not always present).
βββ db.sqlite3-wal # SQLite write-ahead log file (not always present).
βββ icon_cache # Site icons (favicons) are cached under this dir.
β βββ <domain>.png
β βββ example.com.png
β βββ example.net.png
β βββ example.org.png
βββ rsa_key.der # `rsa_key.*` files are used to sign authentication tokens.
βββ rsa_key.pem
βββ rsa_key.pub.der
βββ sends # Each Send attachment is stored as a separate file under this dir.
βββ <uuid> # (The sends dir won't be present if no Send attachments have been created.)
βββ <random_id>