This repository provides a Docker Compose configuration for setting up a self-hosted password manager using Vaultwarden, a compatible server for the Bitwarden password manager.
- Self-hosted: Host your password manager on your own server for increased privacy and control.
- Admin Page: Enable an admin page to view registered users, delete users, and invite new users.
- HTTPS Support: Secure your connection with HTTPS to prevent possible MITM attacks.
-
Clone this repository to your server:
https://github.com/vineethmn/vaultwarden-docker-compose.git
-
Navigate to the cloned directory:
cd vaultwarden-docker-compose
-
Edit the
.env
file andconfig.json
file to configure your parameters. Note that the- SIGNUPS_ALLOWED=false
variable is set tofalse
, you need to change this totrue
in order to create admin account and revert back tofalse
for security reasons. -
Generate an authentication token for the admin page. It's recommended to use a long, randomly generated string of characters. You can use the following command to generate a token:
openssl rand -base64 48
Keep this token secret as it will be used as the password to access the admin area of your server.
-
Bring the
vaultwarden
container updocker compose up -d
-
Follow the instructions in the Vaultwarden Wiki for additional configuration and usage details.
It's heavily recommended to activate HTTPS before enabling the admin page to avoid possible MITM attacks.
This project is licensed under the MIT License.