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.
By Simon Vasconcelos Lee
Published on 27 November 202611 minute read
pglombardo/pwpush and PostgreSQL, with the application port published on 127.0.0.1 behind an HTTPS reverse proxy.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.pg_dump, an archive of the storage volume and your .env. To update, change the image tag: migrations run on their own at start.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.
/admin, a JSON API with a token per user, a command-line client and browser extensions.It is translated into more than thirty languages, and its texts, logo and theme can carry your brand.
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.
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.
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:
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:
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
PWPUSH_MASTER_KEY encrypts the content of every push in the database, in AES-256-GCM: 64 hexadecimal characters, which openssl rand -hex 32 produces. Without it, the image uses a built-in key that is the same on every installation. Keep it secret, and keep it stable: with another key, existing pushes can no longer be read.SECRET_KEY_BASE signs the session cookies. Without it, the image draws a new one at each start, and everyone is signed out after a restart or an update.127.0.0.1:8103: 5100 is the application itself, the port the documentation asks a reverse proxy to use; 8103 is the free local port we chose on the server, any other works if Caddy points to the same. The project file publishes port 443 to the whole internet for the image’s own TLS, which Caddy replaces here.DATABASE_URL. The documentation’s example uses pwpush_passwd.PWP__ALLOW_ANONYMOUS: "false": only signed-in users create pushes, so your server does not share secrets for strangers. Recipients still open their links without an account.PWP__SECURE_COOKIES: "true" sends the cookies over HTTPS only and hides them from JavaScript; the default is off.PWP__DISABLE_SIGNUPS stays at "false" until your team has its accounts, then turns to "true", further down.storage volume holds the files pushed and the first-run boot code. The documentation warns never to mount a volume over /opt/PasswordPusher/db, which holds the migrations of the image.latest, and the documentation recommends stable or a version tag for production. A full version, here 2.17.5, lets you choose when each update happens. On Docker Hub, version tags carry no v./var/lib/postgresql; the documentation’s example, written for version 15, mounts /var/lib/postgresql/data.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:
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.
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.
password-pusher.example.com {
reverse_proxy 127.0.0.1:8103
}
sudo systemctl reload caddy
https:// and the public name. A proxy on another machine goes in PWP__TRUSTED_PROXIES.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:
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.
/users/sign_up. As long as account emails are off, which is the default, no confirmation email is needed.PWP__ALLOW_ANONYMOUS off, the home page sends them to the sign-in page, and the API refuses a push without a token.Once every account exists, close sign-ups and recreate the container:
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.
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.
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:
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.
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:
(
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.
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:
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
--exit-on-error stops the restore at the first error, and the && stop the sequence there: Password Pusher stays stopped. Start again from dropdb once the cause is fixed.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.
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:
docker compose pull
docker compose down
docker compose up -d
docker compose logs pwpush | grep -E 'Version:|migrating'
SECRET_KEY_BASE.docker compose down removes the containers, not the named volumes: the database and the files stay.UPGRADE-2.0.md in the repository first: the start script points to it.nightly tag follows development and is not recommended for production: stay on releases.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.
| Topic | Our teams | You |
|---|---|---|
| The server | System and security updates, server interventions included | The timing that suits you |
| Monitoring | Server monitored 24/7, with intervention without waiting for your call | Your pushes, your accounts and your settings in Password Pusher |
| Password Pusher | Proactive monitoring: errors, slowdowns, database and disk space spotted, fix recommended | Its installation, updates and settings, which you apply, yourself or through your AI assistant |
| Users | The server that carries them, monitored and backed up | Accounts, administrators and sign-ups |
| Backups | Every night, encrypted and kept off the machine; restores included | Password Pusher’s own database dumps and file archives, your master key, and the restore request, when you need one |
| Migration | Your current server migrated, free of charge | The 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Simafri
Let's talk about your project
Tell us what you need in a few words: we will get back to you quickly.
Thank you! Your request has been sent. We'll get back to you shortly.
Prefer email? Write to us at support@simafri.com.