This repository contains a Docker Compose setup for running Vaultwarden (Bitwarden) server with Nginx as a reverse proxy.
This project sets up a self-hosted Vaultwarden server (an unofficial Bitwarden server) using Docker Compose. Nginx is used as a reverse proxy to handle HTTPS and direct traffic to the Vaultwarden server.
To get a local copy up and running follow these steps.
Ensure you have the following installed on your system:
Other places for further study: -Docker Volumes -Docker Mounts -Nginx in Docker
-
Clone the repository:
git clone https://github.com/MARUMDRS/vaultwarden-nginx.git cd vaultwarden-nginx -
Customize the configuration files as needed.
-
Run the Docker Compose setup:
docker-compose up -d
If you want to access the /admin page, an htpasswd file is neeeded.
- The htpasswd File
sudo apt-get install apache2-utils htpasswd -c ./adminpage/.htpasswd your_username
*If you do not need the /admin page,then you should go to the nginx configuration file (nginx.conf) and comment this part:
location /admin {
...
}
- Docker Compose File
The docker-compose.yml file includes two services: vaultwarden and nginx. You can tweak them as you like.
- Nginx Configuration
The nginx.conf file contains the configuration of the nginx server.
Once the containers are up and running, you can access Vaultwarden at https://your-domain.com (replace with your actual domain).