-
Notifications
You must be signed in to change notification settings - Fork 0
Vaultwarden Docker Container Settup
In this setup I will be using a Debian 11 Docker container hosted on proxmox:
Download the Debian 11 container template in disk>CT Templates> Debian 11
Create a CT with your chosen name and ID
Allocate 2 Cores, 4096MB of RAM, and 30Gb of Storage
Start the docker container, and create a sudo user with:
useradd user
usermod -aG sudo user
Switch to the new Sudo user for the rest of the installation
First install necessary apps and components for vault-warden:
sudo apt-get install apt-transport-https docker ca-certificates curl gnupg-agent software-properties-common
Then enable the docker service with
sudo systemctl enable --now docker
To see the status and test docker run
sudo docker ps
First we grab the Vaultwarden container using:
sudo docker pull vaultwarden/server:latest
Next we have to make the running dir for VaultWarden
sudo mkdir /srv/vaultwarden
sudo chmod go-rwx /srv/vaultwarden
Then we start the container with the following:
sudo docker run -d --name vaultwarden -v /srv/vaultwarden:/data -e WEBSOCKET_ENABLED=true -p systemip:80:80 -p systemip:3012:3012 --restart on-failure vaultwarden/server:latest
With "systemip" the local address of the container
Now create a nginx reverse proxy entry like the following: