Illustrative WIUNIX Academy IT engineering workspace with server/network equipment and an instructional board: Self-host Vaultwarden with HTTPS, restricted admin access and consistent backups

WIUNIX ACADEMY

Self-host Vaultwarden with HTTPS, restricted admin access and consistent backups

Deploy community Vaultwarden with a digest-pinned image, loopback backend, private admin PHC, closed signups and a coordinated recovery plan.

Intermediate60 min readUpdated
Make this guide yours

YOUR SYSTEM. YOUR STEPS.

Where are you working?

Choose your OS and version. The prerequisites, commands and troubleshooting follow your environment.

Manjaro Stable (rolling)Reviewed against official documentation ·

USE YOUR OWN VALUES

Configure this tutorial

Set the example values for your environment; related explanations and copy panels update together. Never enter passwords, private keys or tokens. Values stay in this tab and are not sent to the server or share links. Check actual DNS, certificates and network policy before running commands.

Different IP addresses, domains or ports? Open the settings below, change the values and select “Apply to tutorial”, then copy the updated commands.

Set values for my environment7 editable values

THE OUTCOME

What will you have at the end?

Run a controlled password-service pilot with explicit HTTPS and recovery boundaries.

01HTTPS vault.example.comClient → Nginx443
02127.0.0.1:8159Vaultwarden1.37.5 • UID23159
03/srv/academy-vaultwardenStopped writer → private backup
04203.0.113.10/32Restricted admin + private PHC
Supported operating systems and versions

DEB, RHEL-family and Arch/Manjaro paths are documented, not installation-tested on every distribution. Historical execution evidence applies only to1.37.4.

Before you begin

  • Dedicated VM, rootful Docker28+, DNS and trusted TLS.
  • Encrypted backup destination and restricted management access.

A small password service with a recovery boundary

Deploy a single-node community Vaultwarden service for a small trusted pilot, with Nginx HTTPS for vault.example.com, a loopback backend at 8159, protected admin access and a stopped-writer recovery set under /srv/academy-vaultwarden. Allow roughly 60 minutes after Docker, DNS and certificate preparation. Use dummy vault content until the acceptance and recovery rehearsal are complete.

Vaultwarden is an independent implementation of the Bitwarden client API, not the official Bitwarden server or a Bitwarden-supported deployment. Operators own patching, client compatibility, storage, monitoring and recovery. Server administration can delete users and alter authentication; an admin hash is distinct from each user’s master password and client KDF. A backup cannot recover a forgotten master password by itself.

Edit public examples, apply, then copy

Open the settings form, edit the public examples, press Apply, then copy the updated panel. Pending or invalid edits disable copying. Never enter a password, admin token, PHC hash, private key, SMTP credential or vault item in this article’s form.

Values and custom progress remain in sessionStorage for this tab, language, article and environment; default progress uses localStorage. Reset restores the reviewed examples. Personalizing text does not run commands, own DNS, reserve a port or prove access. 203.0.113.10/32 is a documentation-only example: replace it with the single trusted administrator source network before enabling HTTPS.

Start with an empty dedicated VM

Use a fresh dedicated VM with sudo, root-controlled parent directories, signed distribution repositories, sufficient storage/inodes and a backup destination with encryption managed outside this service. Rootful Docker Engine ≥28 must already be installed through its supported OS procedure; this guide does not install or mix Docker packages. Older Docker versions have a documented loopback-publication exposure caveat.

Prepare IPv4 DNS A (do not publish an AAAA record for this IPv4-only proxy), trusted certificate/full chain and matching private key for vault.example.com, a renewal procedure and public TCP443. Nginx connects directly to Docker on the same VM. No CDN, upstream proxy, remote backend or subpath hosting is included. Changing that topology requires reviewing real client-IP trust and the admin allowlist, not trusting arbitrary forwarded headers.

Reserve numeric UID/GID 23159 and container name academy_vaultwarden. The admin source CIDR 203.0.113.10/32 must be reachable and genuinely yours; do not allow all addresses. Keep console/SSH recovery access. Use an ordinary official client only after verifying its exact current version against upstream release notes; do not import an existing personal vault for a smoke test.

RHEL, Rocky and AlmaLinux require enforcing SELinux and a Docker daemon with SELinux support already enabled. Do not disable that protection. Arch/Manjaro uses its own repository packages; a custom SELinux installation needs its own reviewed host policy before proceeding.

Pin the reviewed security release

Reviewed on 2026-11-05: current upstream 1.37.5 was released on November 1 with two security fixes. New deployments here use that release. Invalid configuration can now prevent startup; investigate the reported option rather than weakening validation.

The image reference pins both the release and its official multi-platform index digest. A digest identifies exact content and does not update itself. Stage future security updates on a restored copy before cutover.

The bundled web vault is 2026.10.1. Read the release notes for two-step-login and emergency-recovery compatibility; these features are not executed acceptance claims here. Sends remain disabled. Verify every intended exact client version.

The historical execution evidence later in this article belongs to 1.37.4. It is not a test of 1.37.5 or of every listed distribution. Complete current-version acceptance and recovery before storing real secrets.

01

LET’S BUILD

Install the selected OS utilities

Install the tools before the Python-dependent checks. Select the actual host OS above. The RHEL-family path targets the maintained standard 9.8 or 10.2 channel reviewed here, not an older EUS installation mixed with current EPEL dependencies.

DEB systems use APT. RHEL-family Argon2 comes from EPEL with matching CRB/CodeReady Builder dependencies; enabling those repositories is an explicit provisioning decision on this fresh VM. Verify a newly offered repository key against the distribution authority and review the install transaction. Arch/Manjaro installation includes a full system update, so schedule it before deploying this workload; do not mix Arch repositories into Manjaro.

DEB packaging can start Nginx during installation; RPM/Arch usually requires an explicit start. Configure TLS and validate the proxy below before starting or reloading it.

bash

Dedicated Vaultwarden VM

set -eu
. /etc/os-release
test "$ID" = 'manjaro'
sudo pacman -Syu --needed nginx argon2 python openssl ca-certificates curl nano sqlite iproute2 glibc
pacman -Q nginx argon2 python openssl sqlite
command -v python3 ss getent
How do I know it worked?

Utilities and versions are available; matching RHEL-family repositories resolve Argon2.

02

LET’S BUILD

Check engine, identity and listeners

Run on the dedicated VM before provisioning. Stop on any conflict; these checks do not reserve resources against another administrator. The root directory’s parent must already exist and be controlled by root.

The CLI must reach the actual local Docker Engine. A Podman-compatible command or remote context is not equivalent; resolve the installation/context through its owning procedure before continuing.

bash

Dedicated Vaultwarden VM

set -eu
sudo python3 - <<'PY'
import socket,subprocess,json,os
assert not os.environ.get('DOCKER_HOST') and not os.environ.get('DOCKER_CONTEXT'), 'Remote Docker overrides refused'
context=json.loads(subprocess.check_output(['docker','context','inspect'],text=True))[0]
assert context['Endpoints']['docker']['Host']=='unix:///var/run/docker.sock', 'Use the local rootful Docker socket'
server=json.loads(subprocess.check_output(['docker','version','--format','{{json .Server}}'],text=True))
assert 'podman' not in json.dumps(server).lower(), 'Podman compatibility is not Docker Engine'
assert any(c['Name']=='Engine' for c in server.get('Components',[])), 'Actual Docker Engine required'
version=server['Version']
assert int(version.split('.')[0]) >= 28, 'Docker Engine >=28 required'
security=subprocess.check_output(['docker','info','--format','{{.SecurityOptions}}'],text=True)
assert 'rootless' not in security, 'This recipe requires rootful Docker'
assert subprocess.run(['docker','container','inspect','academy_vaultwarden'],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL).returncode != 0, 'Container name in use'
for kind in ('passwd','group'):
    assert subprocess.run(['getent',kind,'23159'],stdout=subprocess.DEVNULL).returncode != 0, 'UID/GID in use'
for port in (443,8159):
    with socket.socket() as s: s.bind(('0.0.0.0',port))
print('Engine, name, numeric identity and ports: OK')
PY
How do I know it worked?

Engine ≥28, unused name/UID/GID, and free443/8159.

Explore all tutorials ↗