- PowerShell 84.6%
- Shell 13.4%
- Batchfile 2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| oem | ||
| scripts | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| README.md | ||
Passwordstate Server on Docker (Linux Host)
Run Click Studios Passwordstate as a Docker Compose stack on a Linux host without manually provisioning or managing a standalone Windows Server VM.
Architecture
Passwordstate requires Windows, IIS, .NET Framework 4.8.1, and Microsoft SQL Server, so it cannot run in a native Linux container. This stack pairs:
mssql(mcr.microsoft.com/mssql/server:2022-latest) — Native Linux SQL Server 2022 container for the Passwordstate database.passwordstate(dockurr/windows:latest) — KVM-backed Windows Server 2022 container with automated OEM provisioning (oem/install.bat+oem/setup-passwordstate.ps1) that installs IIS, ASP.NET 4.8, .NET Framework 4.8.1, opens firewall ports80/443, and stagesPasswordstate.exe.
Prerequisites
- Linux host with KVM enabled (
/dev/kvmavailable) - Docker and Docker Compose v2
- At least 4 GB RAM and 64 GB free disk space (plus space for SQL Server data)
Quick Start
-
Configure environment variables:
cp .env.example .envEdit
.envand set strong passwords forMSSQL_SA_PASSWORDandWIN_PASSWORD. -
Download and verify
passwordstate.zip:./scripts/download-passwordstate.shCompare the printed SHA-256 hash against the official Passwordstate Checksums page, or pass
--sha256 <expected_hash>directly:./scripts/download-passwordstate.sh --sha256 <expected_sha256> -
Start the stack:
docker compose up -d -
Wait for automatic provisioning (two-phase):
- On first boot,
oem/install.batrunsoem/setup-passwordstate.ps1(installs IIS, ASP.NET 4.8, .NET Framework 4.8.1, opens firewall ports80/443, and extractspasswordstate.zip). - If .NET Framework 4.8.1 requires a reboot (exit code
3010), the VM automatically schedulesoem/setup-phase2.ps1at startup and reboots. - After reboot,
setup-phase2.ps1runsPasswordstate.exe /ssilently and configures a self-signed HTTPS binding on port443if needed. (If the installer rejects silent mode, it registersPasswordstate.exeto launch automatically on desktop login.) - You can monitor progress via
http://localhost:8006(logs are written toC:\OEM\setup.logandC:\OEM\setup-phase2.log).
- On first boot,
-
Complete the web-based first-run setup:
Open
https://localhost/(orhttps://<your-host-ip>/) in your browser and complete Passwordstate's initial setup wizard using:- Server Name:
mssql - Authentication: SQL Server Authentication
- Username:
sa - Password: your
MSSQL_SA_PASSWORDfrom.env
- Server Name:
Persistence & Backups
./data/mssql— SQL Server database files./data/windows— Windows Server virtual disk image (C:\inetpub\Passwordstate,web.config, IIS configuration)- Back up both
./data/mssqlandC:\inetpub\Passwordstate\web.config(and your Passwordstate emergency recovery keys) regularly.