Vaultwarden is a free and secure password manager that works on any device and platform. It is the community version of Bitwarden, with features like organizations, attachments, API, and more.
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: unless-stopped
ports:
- 8090:80
environment:
DOMAIN: "https://vault.example.com" # Your domain here!
# ADMIN_TOKEN: changeme
volumes:
- /mnt/tank/configs/vaultwarden:/data
Change the domain to the FQDN with https you will be accessing from. Leave the
admin_token
commented out until you finish the install.
Your Vaultwarden server is now ready on whatever port you specified. However, do not go to http://{localhost}:8090. Even though the page will load you will not be able to create an account. You must come in over https, usually using a reverse proxy like Cloudflare tunnels or Nginx.
After you have created your account, to prevent other users from doing so on your server, you must disable to ability to create new account from the admin panel.
ADMIN_TOKEN
line and relaunch your containerADMIN_TOKEN
line back out and restart the container.To fully disable to Admin panel, you need to remove the line for the admin token from the config.json file within the container.