PiVPN Web ships as a single Docker image, so getting from zero to a running dashboard takes only a handful of commands. Follow the steps below to install Docker, set up PiVPN with WireGuard, and launch the container.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AZhur771/pivpn-web/llms.txt
Use this file to discover all available pages before exploring further.
Install Docker
If Docker is not already installed on the machine that will run PiVPN Web, use the official convenience script to install it, then add your user to the Log out and back in (or run
docker group so you can run container commands without sudo.newgrp docker) for the group change to take effect. Verify the installation with docker --version.Install PiVPN (WireGuard)
On the host machine you want PiVPN Web to manage, run the PiVPN installer and choose WireGuard when prompted for the VPN protocol.The interactive installer will walk you through selecting your network interface, port, DNS provider, and VPN protocol. See https://pivpn.io for full installation instructions and troubleshooting guidance.
PiVPN Web does not support OpenVPN. When the PiVPN installer asks which
VPN protocol to use, select WireGuard.
Run PiVPN Web
Start the PiVPN Web container with What each variable does:
The
docker run, passing your SSH credentials and desired admin account details as environment variables.| Variable | Description |
|---|---|
SSH_HOST | IP address or hostname of the machine running PiVPN WireGuard. |
SSH_PORT | SSH port on the target host. Defaults to 22 if omitted. |
SSH_USER | Linux username the container will use to authenticate over SSH. |
SSH_PASSWORD | Password for the SSH user above. |
ADMIN_USER | Username you will log into the PiVPN Web dashboard with. |
ADMIN_PASSWORD | Password for the dashboard admin account. |
--restart=unless-stopped flag ensures the container starts automatically after a reboot. Remove it if you prefer to start PiVPN Web manually.Open the dashboard
Navigate to
http://<host>:3001 in your browser, where <host> is the IP or hostname of the machine running the Docker container.Log in using the ADMIN_USER and ADMIN_PASSWORD values you set in the previous step. You will land on the client list, where you can immediately start creating and managing WireGuard peers.The admin account is created by a TypeORM migration that runs once on first
startup. If the container starts successfully but you cannot log in, check
the container logs with
docker logs pivpn-web for any migration or SSH
connection errors.Next steps
Configuration
Explore all supported environment variables, user roles, TLS setup, and
session secret behaviour.
Docker Compose
Use a
docker-compose.yml file to manage PiVPN Web alongside other
services with a single command.Remote SSH
Connect PiVPN Web to a PiVPN host on a different machine or network over
SSH.
User management
Add viewer and tech accounts, understand role permissions, and manage
dashboard access.