Self-host Password Pusher on a managed VPS: links that expire

To self-host Password Pusher on a managed VPS is to share passwords, files and other secrets through links that expire, from a server of your own, which our teams keep up to date and monitor day and night. Password Pusher is free, open source software under the Apache-2.0 license. This guide follows its official Docker image at version 2.17.5, and we ran every command on a Simafri VPS before writing it: installation with Docker Compose and PostgreSQL, HTTPS, the first administrator, the API, backups, a restore and updates.

Simon Vasconcelos Lee By Published on 27 November 202611 minute read

All guides

In short

  1. The Apache-2.0 license lets you run Password Pusher for your company, your association or your clients with no license to buy.
  2. Install it with Docker Compose: the official image pglombardo/pwpush and PostgreSQL, with the application port published on 127.0.0.1 behind an HTTPS reverse proxy.
  3. Generate PWPUSH_MASTER_KEY, which encrypts the pushes in the database, and SECRET_KEY_BASE, which keeps sessions across restarts, into a .env file. Without the master key, a backup cannot be read.
  4. The first account is created with a boot code printed in the container log, and it is the administrator. Then turn sign-ups off once your team has its accounts.
  5. Back up with pg_dump, an archive of the storage volume and your .env. To update, change the image tag: migrations run on their own at start.

What Password Pusher does

Password Pusher sends a secret as a link instead of a message. You paste a password, a note or a file, choose how many days and how many views the link lasts, and send the link. Once it expires, the secret is deleted from the database. It is written in Ruby on Rails and maintained by its author with the team at Apnotic, who also run the hosted service at pwpush.com.

It is translated into more than thirty languages, and its texts, logo and theme can carry your brand.

What the Apache-2.0 license allows

The open source edition is published under the Apache License, version 2.0. You can use it free of charge, for your company, your association or your clients, copy it and modify it. If you distribute it, you keep the license and its notices with it. The software is provided without warranty.

Apnotic also sells a Pro edition, hosted or self-hosted, with its own license. Nothing in this guide needs it.

The resources to plan for

Here is what we measured on our test VPS, with two pushes, one of them a file:

A small server is therefore enough, even beside other applications. On a managed VPS, tell us about your usage and we will recommend the right size.

Installing with Docker Compose and PostgreSQL

The official image, pglombardo/pwpush, contains the application, its background worker and a small HTTP proxy. It uses SQLite by default; its documentation recommends PostgreSQL for production deployments that call for backups, replication or high availability, and gives a Compose example with it, which this guide follows. On a server with Docker Engine and its Compose plugin, installed from Docker’s repository for Ubuntu, create a folder such as /opt/password-pusher and put this compose.yaml in it, based on the project’s own docker-compose.yml:

compose.yaml
services:
  postgres:
    image: postgres:18-alpine
    restart: unless-stopped
    environment:
      POSTGRES_DB: pwpush
      POSTGRES_USER: pwpush
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}
    volumes:
      - postgres-data:/var/lib/postgresql
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U pwpush -d pwpush"]
      interval: 10s
      timeout: 5s
      retries: 10

  pwpush:
    image: docker.io/pglombardo/pwpush:2.17.5
    restart: unless-stopped
    ports:
      - "127.0.0.1:8103:5100"
    environment:
      DATABASE_URL: postgres://pwpush:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}@postgres:5432/pwpush
      PWPUSH_MASTER_KEY: ${PWPUSH_MASTER_KEY:?set PWPUSH_MASTER_KEY in .env}
      SECRET_KEY_BASE: ${SECRET_KEY_BASE:?set SECRET_KEY_BASE in .env}
      PWP__FILES__STORAGE: "local"
      PWP__ALLOW_ANONYMOUS: "false"
      PWP__DISABLE_SIGNUPS: "false"
      PWP__SECURE_COOKIES: "true"
    volumes:
      - pwpush-storage:/opt/PasswordPusher/storage
    depends_on:
      postgres:
        condition: service_healthy
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5100/up"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s

volumes:
  postgres-data:
  pwpush-storage:

The three secrets go in a .env file next to it, which Docker Compose reads on its own. Create it readable by root only, then start the stack:

Terminal, in /opt/password-pusher
umask 077
printf 'POSTGRES_PASSWORD=%s\nPWPUSH_MASTER_KEY=%s\nSECRET_KEY_BASE=%s\n' "$(openssl rand -hex 24)" "$(openssl rand -hex 32)" "$(openssl rand -hex 64)" > .env
umask 022
docker compose up -d
docker compose ps

At each start, the image runs the database migrations, then the web server and the worker. On our test VPS, the application answered about ten seconds after its container started. To check that it is ready:

Terminal, in /opt/password-pusher
docker compose logs pwpush | grep -E 'Version:|database backend'
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:8103/up

The first command shows Version: 2.17.5 and the PostgreSQL backend read from DATABASE_URL. The second returns 200.

HTTPS: the reverse proxy

The container serves Password Pusher over HTTP, on port 8103 of the server. HTTPS is handled by a reverse proxy in front of it, which must forward X-Forwarded-Host and X-Forwarded-Proto so that the links Password Pusher builds point to your public address. We tested Caddy, installed from its official Debian and Ubuntu repository: it obtains the Let’s Encrypt certificate itself, renews it, and sets these headers by default.

/etc/caddy/Caddyfile
password-pusher.example.com {
	reverse_proxy 127.0.0.1:8103
}
Terminal
sudo systemctl reload caddy

The first account and your team

Open your address: as long as no account exists, Password Pusher sends every visitor to its First Run Setup page, which asks for a boot code, an email address and a password. The code is printed in the container log when the page opens:

Terminal, in /opt/password-pusher
docker compose logs pwpush | grep "Boot Code"

The account created there is the administrator, and you land on the Administration Center, at /admin, which gives access to the pushes, users and settings in the database. The boot code is erased once the account exists.

Once every account exists, close sign-ups and recreate the container:

Terminal, in /opt/password-pusher
sed -i 's/PWP__DISABLE_SIGNUPS: "false"/PWP__DISABLE_SIGNUPS: "true"/' compose.yaml
docker compose up -d

On our test VPS, the Sign up page then answered 404, and the administrator still signed in with a password. To add someone later, turn the setting back for the time it takes. To make an existing account an administrator, the documentation gives the ./bin/promote_to_admin script of the image.

Emails

Password Pusher sends email for account confirmation, password resets and the optional notification of a recipient. Set PWP__MAIL__SMTP_ADDRESS, PWP__MAIL__SMTP_PORT (587), PWP__MAIL__SMTP_USER_NAME, PWP__MAIL__SMTP_PASSWORD and PWP__MAIL__MAILER_SENDER, then PWP__ENABLE_USER_ACCOUNT_EMAILS: "true"; the project file warns that without SMTP, this last setting leads to errors. On a Simafri VPS, applications send through an authenticated SMTP relay on port 587, which also gives your email the best deliverability. We did not test sending on our VPS.

Pushing from the command line

Each user has an API token, on the API token page of the account menu, at /users/token. With it in the PWPUSH_TOKEN variable of your shell, a push takes one request:

Terminal
curl -s -X POST https://password-pusher.example.com/api/v2/pushes -H "Authorization: Bearer $PWPUSH_TOKEN" -H "Content-Type: application/json" -d '{"push":{"payload":"Wi-Fi password: correct-horse-battery-staple","expire_after_views":5}}'

The answer is a JSON object whose html_url is the link to send. On our VPS, it ended in /r, the retrieval step page, and the push page itself showed the password. A file push works the same way, sent as push[files][] in a multipart request: we pushed a text file and downloaded it back, identical to the byte. Version 2 of the API is still marked beta by the project.

Backups

Everything lives in three places: the PostgreSQL database with the pushes and the accounts, the pwpush-storage volume with the files pushed, and your .env file. Keep the latter safe: without PWPUSH_MASTER_KEY, the pushes of the database cannot be decrypted. The PostgreSQL image includes pg_dump, and the Password Pusher image includes tar:

Terminal, in /opt/password-pusher
(
  umask 077
  docker compose exec -T postgres pg_dump -U pwpush -Fc pwpush > pwpush-$(date +%F).dump
  docker compose exec -T pwpush tar -C /opt/PasswordPusher -czf - storage > storage-$(date +%F).tar.gz
  cp .env env-$(date +%F).bak
)
ls -l pwpush-*.dump storage-*.tar.gz env-*.bak

The parentheses keep the umask to these three commands: the copies are created readable by root only, -rw-------. Schedule them and send them off the server. Stored on the disk, they are also included in the server’s nightly backups.

Restoring

On the same installation, with the same compose.yaml and .env, stop the application, replace the database with an empty one, load the dump and the files, then start it again:

Terminal, in /opt/password-pusher
docker compose stop pwpush &&
docker compose exec -T postgres dropdb -U pwpush pwpush &&
docker compose exec -T postgres createdb -U pwpush pwpush &&
docker compose exec -T postgres pg_restore -U pwpush -d pwpush --exit-on-error --no-owner < pwpush-2026-11-27.dump &&
docker compose run --rm --no-deps -T --entrypoint tar pwpush -C /opt/PasswordPusher -xzf - < storage-2026-11-27.tar.gz &&
docker compose start pwpush

We tested the whole cycle on our VPS: the backup, a push created afterwards, the files volume emptied, then the restore into a dropped and recreated database. The text push and the file push came back, the file identical to the byte, the push created after the backup was gone, and the administrator’s session was still valid.

Updates

Password Pusher publishes often: six releases between 28 October and 27 November 2026, the last one, 2.17.5, which brings the ARM64 images back. The image follows on Docker Hub with the same numbers. This guide pins 2.17.5, the most recent release when we tested it: check the releases page for a newer one, and its notes for breaking changes, before you install. Take a backup, change the image tag in compose.yaml, then follow the documentation’s sequence:

Terminal, in /opt/password-pusher
docker compose pull
docker compose down
docker compose up -d
docker compose logs pwpush | grep -E 'Version:|migrating'

Who does what on a managed VPS

Self-hosting means running the server on top of the application. On a managed VPS, our teams take charge of the server and proactively monitor your instance; Password Pusher remains your software, with your data and your settings.

TopicOur teamsYou
The serverSystem and security updates, server interventions includedThe timing that suits you
MonitoringServer monitored 24/7, with intervention without waiting for your callYour pushes, your accounts and your settings in Password Pusher
Password PusherProactive monitoring: errors, slowdowns, database and disk space spotted, fix recommendedIts installation, updates and settings, which you apply, yourself or through your AI assistant
UsersThe server that carries them, monitored and backed upAccounts, administrators and sign-ups
BackupsEvery night, encrypted and kept off the machine; restores includedPassword Pusher’s own database dumps and file archives, your master key, and the restore request, when you need one
MigrationYour current server migrated, free of chargeThe timing of the switch

If you would rather have our teams work inside the application itself, that service is billed by the hour or at a fixed rate, with an estimate shared before the work starts.

Password Pusher, on a server run for you

With a Simafri Managed VPS, our teams keep your Password Pusher instance’s server up to date, monitor it day and night and step in without waiting for your call; they also proactively monitor your instance and recommend useful fixes, which you apply, yourself or through your AI assistant. Backups are encrypted every night and kept off the machine, restores are included, and migrating your current server is free.

Explore Managed VPS

Frequently asked questions

Is Password Pusher free?

Yes. The open source edition is under the Apache-2.0 license: you can run it for your company, your association or your clients with no license to buy. Apnotic sells a separate Pro edition. What remains is the cost of the server that runs it.

How do I install Password Pusher with Docker Compose?

Use the pglombardo/pwpush image and PostgreSQL in a compose.yaml, with DATABASE_URL pointing to the database. Put the database password, PWPUSH_MASTER_KEY and SECRET_KEY_BASE in a .env file, publish the application port 5100 on 127.0.0.1, run docker compose up -d, and put an HTTPS reverse proxy in front.

Should Password Pusher use SQLite or PostgreSQL?

SQLite is the default and suits a single server. The documentation recommends PostgreSQL for production deployments that need backups, replication or high availability. With PostgreSQL, pg_dump takes a consistent backup while the application runs.

Where is the Password Pusher boot code?

In the container log, printed when the First Run Setup page opens: docker compose logs pwpush | grep "Boot Code". It is only needed to create the first account, which becomes the administrator, and it is erased afterwards.

How much memory does Password Pusher need?

On our test VPS, the Password Pusher container used about 340 MB with its web server and worker, and PostgreSQL about 45 MB. The two images take about 380 MB of disk.

How do I back up Password Pusher in Docker?

Dump the database with pg_dump from the PostgreSQL container, archive /opt/PasswordPusher/storage from the Password Pusher container, and keep a copy of your .env file, whose PWPUSH_MASTER_KEY is needed to read the pushes. Restore into an empty database with pg_restore --exit-on-error.

How do I update Password Pusher in Docker?

Take a backup, change the image tag in compose.yaml, then run docker compose pull, docker compose down and docker compose up -d. The image runs the database migrations at start; the volumes are kept.

Does a managed VPS cover Password Pusher?

A managed VPS covers the server: system, security, monitoring and backups. Our teams also proactively monitor your instance and recommend useful fixes, which you apply. Work inside the application is billed by the hour or at a fixed rate.

Contact us