Key takeaways
- Run your own password manager on a NAS with Vaultwarden in Docker. Learn the setup, HTTPS, two-factor sign-in, and the backup habit that protects logins.
As an Amazon Associate we earn from qualifying purchases.
Every account you own has a password, and most people solve that by reusing a few familiar ones or paying a cloud service to remember them all. A NAS you already own offers a third option: run the password manager yourself, on hardware in your own home. The vault lives on your disks, behind your router, and no company holds a copy. The trade is responsibility — you keep it patched, reachable, and backed up.
This guide fits anyone who already runs a NAS and wants control over where logins live — a household sharing streaming and banking logins, or one person tired of subscription password tools. Two facts shape everything that follows. First, the vault database is the crown jewels: if the NAS dies and no separate backup exists, every password goes with it. Second, self-hosting is a choice about control, not convenience — the cloud managers are easier for most people, and this route only pays off if you keep up the maintenance.
How to Choose
Vaultwarden or a Native Package
Most NAS brands offer a container platform, and Vaultwarden is the usual pick because it is light, free, and works with the standard Bitwarden apps on every phone and computer. A few vendors ship their own password apps, but those tie the vault to one brand and one interface. Vaultwarden runs as a single container with one database file, so moving it to another box later means copying a folder. If containers are new to you, our guide to running Docker on a NAS covers the platform itself; this guide covers only the vault. If your NAS has no container support at all, this project is the wrong fit, and a cloud manager is the honest answer.
Where the Vault Database Lives
The database file, db.sqlite3, holds every login, note, and card in the vault, and it must live in a folder on the NAS volume — never inside the container itself, where it vanishes when the container is replaced. Create a dedicated shared folder on a redundant volume, map it into the container, and confirm the file appears there after the first login. Keep attachments in the same folder so one backup captures everything. Note the folder path in a safe place, because a future move, a drive swap, or a restore all depend on knowing exactly where that file sits.
How You Reach It From Outside the Home
Inside the home, the vault answers on the local network and that is enough for many households. Reaching it from a phone on mobile data needs a secure path in: a reverse proxy with a valid HTTPS certificate, or a VPN into the home network. Plain HTTP over the open internet is not an option for a password manager — logins and the master password would cross the network unencrypted. If setting up HTTPS sounds like too much, keep the vault local-only and connect through the VPN when away; a local-only vault that works beats a public one that leaks.
How You Recover If the NAS Dies
A password manager you cannot recover from is worse than no manager at all, because it holds the keys to everything else. Decide the recovery plan before the first login: a scheduled copy of the vault folder to a second location, the admin token written down on paper, and the two-factor recovery codes stored apart from the NAS. Check that a copy of the database opens on another machine at least once, while nothing is broken, so the restore is a known procedure rather than a guess made during a crisis. A vault with no checked restore is a hope, not a plan.
Step-by-Step
- Confirm the NAS runs a container platform and has a redundant volume with free space. Update the NAS software first, and apply the hardening steps from our NAS security guide — a vault on an unpatched box is a liability, not an asset.
- Create a shared folder, for example vaultwarden, on the redundant volume, and note its path. This folder will hold the database and every attachment.
- Open the container platform, pull the vaultwarden/server image, and create a container from it. Do not change the image name or tag to an unofficial fork; the official image is the one the community documents and patches.
- Map a persistent volume: the container path /data to the folder you created. Map port 80 inside the container to an unused port on the NAS, such as 8089, and port 3012 if you want live sync notifications between devices.
- Add environment variables. Set ADMIN_TOKEN to a long random string you generate and write down on paper. Set SIGNUPS_ALLOWED to true only until the first accounts exist, then flip it to false. Set DOMAIN to the address you will use to reach the vault.
- Launch the container and open the web vault at the NAS address and mapped port. Create the first account with a strong master password you have never used anywhere else. This password is the only key to the vault, and there is no reset button for it.
- Log in to the admin panel with the admin token and confirm signups are disabled, so nobody who finds the address can create an account on your vault. Check the user list shows only the accounts you created.
- Sign in from a second device, a phone or a laptop, and confirm the vault syncs, so you know the setup works beyond the browser tab where you created the account.
- Turn on two-factor sign-in for the vault account using an authenticator app, and save the recovery codes somewhere apart from the NAS. Without the codes, a lost phone means a locked vault.
- Set up HTTPS before using the vault outside the home: point a reverse proxy at the container, attach a valid certificate, and confirm the browser shows a locked connection. A certificate warning in the browser means the connection is not trusted, so do not log in until the warning is gone. Until HTTPS works, use the vault only on the local network.
- Back up the vault folder to a second location — an external drive, a second NAS, or encrypted cloud storage — and schedule that copy to repeat. Keep one copy away from the house, because a fire or a burglary takes the NAS and a backup drive sitting next to it together. Then import existing passwords from the browser or the old manager, and delete the old copies so logins live in exactly one place.
Which One Fits Your Situation
One Person Who Wants Full Control
Keep the vault local-only, skip the reverse proxy, and reach it from outside through the VPN when needed. One account, two-factor sign-in on, signups disabled, and a scheduled backup of the vault folder to an external drive. This is the simplest honest setup, and it suits anyone whose main goal is keeping logins off other companies’ servers. There is nothing else to configure, and nothing else to maintain beyond updates and backups.
A Household Sharing Logins
Create one account per person plus a shared collection for streaming, utilities, and banking logins the household uses together. Each person keeps a private master password, and the shared collection is where the family logins live. Teach everyone the two-factor step once, and keep the recovery codes in a sealed envelope at home. If someone leaves the household, remove their account and change the shared logins they knew.
A Home Office With Remote Access
Put the vault behind a reverse proxy with HTTPS and a domain name, so work logins are reachable from a laptop anywhere. Keep signups disabled, turn on two-factor sign-in for every account, and set the backup to run every night to a second location. Treat the admin token like a house key — never paste it into chat or email. Log out of the web vault on any shared computer, and never save the master password in a browser.
A Family That Travels Often
Install the Bitwarden app on each phone and sync the vault before leaving home, so logins work offline while travelling. Keep the two-factor recovery codes on paper in a bag that stays with you, and never log in to the web vault from a hotel or airport computer. When you return, sync again and confirm the backup ran while you were away. A phone with the vault synced is the safe way to carry logins on the road.
Common Mistakes
- Leaving signups open after the first accounts exist — anyone who finds the address can create an account, so disable signups the same day you create yours.
- Exposing the vault over plain HTTP — the master password and every login would cross the network unencrypted, so HTTPS is not optional outside the home.
- Keeping the only vault backup on the same NAS — a dead volume takes the vault and its backup together, so the copy must live somewhere else.
- Losing the admin token — without it there is no way into the admin panel to disable signups or manage users, so write it on paper and store it apart from the NAS.
- Reusing the master password anywhere else — if that password leaks from another site, the vault is open, so it must be unique and memorized, never stored inside the vault itself.
Frequently Asked Questions
Is Vaultwarden the same as Bitwarden?
Vaultwarden is a community-built server that speaks the Bitwarden protocol, so it works with the official Bitwarden apps on phones and computers. It is not made by the Bitwarden company, and it leaves out a few paid company features, but for a household vault the day-to-day experience is the same — the same apps, the same autofill, and the same sync. Some paid features are missing, but the core is identical.
Do I need a domain name to use it at home?
No. On the local network the vault answers at the NAS address and port, and no domain is involved. A domain name only matters when you want HTTPS access from outside the home, because certificates are issued for names, not bare IP addresses. Until then, keep it local-only or reach it through a VPN. A VPN reaches the vault by its local address, so no certificate is needed.
What happens if I forget my master password?
Nothing good. There is no password reset for a self-hosted vault — the encryption key comes from the master password, and neither the admin panel nor anyone else can recover it. The only way back is a backup of the vault database made while the password was known, or deleting the account and rebuilding the vault from scratch. Write the password down and keep the paper safe.
Can I move the vault to a new NAS later?
Yes. The vault is one folder: the database file, the attachments, and the configuration. Copy that folder to the new NAS, bring up a Vaultwarden container pointed at it, and set the same admin token and domain. Log in once to confirm everything is there before switching off the old box, and keep the old copy until the new setup has run for a week.
More from Amazon
Programs that pair well with the guide above. Offers and eligibility are set by Amazon and may change.
A free business account with business pricing and bulk-buying tools for work, shop or home office.
Create a business accountFree shipping on eligible items, Prime Video and more. Eligible new members can start with a free trial.
Start a Prime free trialAudiobooks and podcasts to listen to on the go. Eligible new members can start with a free trial.
Try Audible freeAd-free music streaming. Eligible new subscribers can start with a free trial.
Try Music Unlimited freeAs an Amazon Associate we earn from qualifying purchases.

Write Your Review
No reviews yet. Be the first to share your experience!