Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Set Up Vaultwarden on a VPS

Vaultwarden is a light Bitwarden-compatible server. Perfect for keeping passwords on your own VPS instead of SaaS.

Steps

  1. Create the Compose project:

    mkdir -p ~/vaultwarden && cd ~/vaultwarden
    sudo tee docker-compose.yml >/dev/null <<'EOF'services:  vaultwarden:    image: vaultwarden/server:latest    container_name: vaultwarden    restart: unless-stopped    environment:      DOMAIN: "https://vault.example.com"      SIGNUPS_ALLOWED: "true"    volumes:      - ./vw-data:/data    ports:      - "127.0.0.1:8080:80"EOF
  2. Start the container:

    docker compose up -d
    docker compose ps
  3. ginx proxy + Certbot to local port 8080:

    sudo tee /etc/nginx/sites-available/vaultwarden >/dev/null <<'EOF'server {  listen 80;  server_name vault.example.com;  location / {    proxy_pass http://127.0.0.1:8080;    proxy_set_header Host $host;    proxy_set_header X-Real-IP $remote_addr;  }}EOF
    sudo ln -sf /etc/nginx/sites-available/vaultwarden /etc/nginx/sites-enabled/vaultwarden
    sudo nginx -t && sudo systemctl reload nginx
    sudo certbot --nginx -d vault.example.com
  4. Create your account, then disable open signups:

    # Web: https://vault.example.com
    sed -i "s/SIGNUPS_ALLOWED: \"true\"/SIGNUPS_ALLOWED: \"false\"/" docker-compose.yml
    docker compose up -d

Tips

  • Back up vw-data/ often — it holds vaults and attachments.
  • HTTPS only: Bitwarden clients need a valid domain.

ext step

Your secrets on a VPS you control: Deploy your Cloud VPS.

Related guides