Skip to main content
This guide walks through a manual deployment using the same file layout the installer generates from install/config/* in the Pangolin source tree. Use it if you want the installer’s defaults, but you want to create and maintain the files yourself. This guide assumes you already have a Linux server with Podman installed and has been tested on Debian 13.5 with Podman version 5.4.2.

Prerequisites

Review the quick install guide and DNS & networking first. At minimum you need:
  • A public Linux server
  • A base domain such as example.com
  • A dashboard hostname such as pangolin.example.com
  • An email address for Let’s Encrypt
  • TCP ports 80 and 443 open
  • UDP ports 51820 and 21820 open if you are using tunneling
If you do not want tunneling, see Without Tunneling. In that mode you will skip the gerbil service and expose Traefik directly.
base domain is the parent domain you will attach resources to, such as example.com. dashboard hostname is the specific hostname for the Pangolin UI and API, such as pangolin.example.com.

Note about ports 80 and 443

By default, unprivileged users cannot bind to privileged ports (< 1024). Some workarounds for this include:
  1. Changing the unprivileged start port to 80
  2. Using iptables / nftables to redirect 80 and 443 to ports above 1023 (such as 8080 and 8443, respectively)
Configuring this is out of the scope of this guide, but many guides exist online for this exact situation.This guide assumes you use option 1.

File Layout

Create the following project structure:
The following files are created later by the running services or added only when you enable optional features:
  • config/db/db.sqlite is created by Pangolin on first startup.
  • config/key is created by Gerbil when tunneling is enabled.
  • config/GeoLite2-Country.mmdb is optional and only needed for geo-blocking. It is not downloaded by the running services in a manual install; download it manually before enabling geo-blocking.

Create the Directories

Create the project folders:

Create the Configuration Files

1

Create container and pod files

This section defines the Pangolin, Gerbil, and Traefik containers, the pod, their shared volumes, and the ports exposed on the host.
pangolin.container
gerbil.container
traefik.container
services.pod
This is the installer’s default community layout with Gerbil enabled. If you want to pin releases instead of using latest, replace the image tags with the versions you intend to run.
2

Create config/traefik/traefik_config.yml

This file configures Traefik’s providers, Badger plugin, Let’s Encrypt resolver, entry points, logs, and health check endpoint.
config/traefik/traefik_config.yml
Traefik stores Let’s Encrypt certificates at /letsencrypt/acme.json inside the container. The container file mounts that path from ./config/letsencrypt, so Traefik will create config/letsencrypt/acme.json when it needs certificate storage.
3

Create config/traefik/dynamic_config.yml

This file defines the routers, middleware, and services that send dashboard, API, and WebSocket traffic to Pangolin.
config/traefik/dynamic_config.yml
4

Create config/config.yml

This file contains Pangolin’s application settings, dashboard domain, base domain, CORS origin, and server secret.
config/config.yml
Replace these values before starting the stack:
  • pangolin.example.com with your dashboard hostname
  • example.com with your base domain
  • replace-with-a-long-random-secret with a strong random secret
  • admin@example.com in traefik_config.yml with your Let’s Encrypt email
Generate a secret with:
Do not reuse a weak or short server.secret. If you need to rotate it later, use pangctl rotate-server-secret. See the container CLI tool guide. Please note you will need to run podman exec ... instead of docker exec ....

Optional Email Configuration

If you want Pangolin to send email, add this block to config/config.yml and set flags.require_email_verification to true:
config/config.yml

Optional Geo-blocking Configuration

If you want geo-blocking, download the MaxMind database and add this line under server:
config/config.yml
See Enable Geo-blocking for the full process.

Start the Stack

1

Reload and start the services

2

Enable lingering so that services stay up after you log out

3

Watch the logs

4

Verify the containers are healthy

pangolin, traefik, and gerbil should all report as running after the first startup finishes.
5

Get the setup token from the Pangolin logs

Check the Pangolin container logs:
Pangolin prints a setup token to stdout on first boot. Copy that token before continuing.
6

Open the initial setup page

Visit:
Replace the hostname with your real dashboard domain, then use the setup token from the Pangolin logs to register the first admin account.

Verify the Setup

You should expect the following on a healthy first install:
  • podman ps -a shows pangolin, traefik, and gerbil as running.
  • podman logs pangolin includes the one-time setup token for the first admin account.
  • Visiting https://<your-dashboard-domain>/auth/initial-setup loads the setup page.
  • config/db/db.sqlite exists after Pangolin starts.
  • config/key exists after Gerbil starts.
The first Let’s Encrypt certificate request can take a short while. If the page initially shows a certificate warning, wait a minute and refresh.

If Something Fails

  • If the setup page does not load, confirm your DNS record points to the server and ports 80 and 443 are reachable.
  • If you cannot complete first-time signup, check podman logs pangolin and copy the setup token printed by Pangolin.
  • If certificates are not issued, confirm admin@example.com was replaced and that nothing else is already bound to ports 80 or 443 (or whatever alternate ports you selected on the host).
  • If pangolin never becomes healthy, inspect podman logs -f pangolin.
  • If tunneling does not work, inspect podman logs -f gerbil and confirm UDP ports 51820 and 21820 are open.
  • If Traefik serves the wrong host, re-check every pangolin.example.com replacement in both Traefik files and config/config.yml.

Without Tunneling

If you do not want Gerbil:
  • Remove the gerbil service.
  • Remove the gerbil block from config/config.yml.
That mode is covered in more detail in Without Tunneling.