Self-hosting
This page is the starting point for running your own Payload Bay instance: it lists the steps in order, from choosing a setup to backups and upgrades, and links to the guide for each one.
Payload Bay runs on your own server. Standard operation needs no cloud account, licence check or payment provider. You need Docker with Compose, a PostgreSQL password, a working email service for sign-in codes, and a reverse proxy with HTTPS in front of port 3000.
1. Choose a setup
| Single container | Operator installation | |
|---|---|---|
| Definition | deploy/compose.single.yml | deploy/compose.yml |
| Runs | One application container (web server and worker) plus PostgreSQL | PostgreSQL, app, worker, executor and a one-shot migrator |
| Source | Builds from source with public dependencies | Prebuilt images from one coordinated release |
| Scripted endpoints | No, the executor is not part of this image | Yes |
| Guide | Single-container deployment | Operator installation |
The single container is the quickest way to try Payload Bay and is enough when you only forward requests to your applications. Choose the operator installation when you need scripted endpoints. Operator images are published with each GitHub Release and pinned by version; the release policy describes what each release does and does not promise.
2. Install and start
Follow the guide for your setup: fill in a private env file outside Git, then start the stack with Docker Compose. The Get started page shows the single-container commands in short form.
3. Secure it
Before you expose the instance to the internet, work through the public instance checklist. It covers the domain, HTTPS, email, invitation-only registration and what to verify before inviting anyone. Authentication describes sign-in providers and account linking.
4. Create the first owner
Open /setup and prove you control the server with PAYLOADBAY_BOOTSTRAP_SECRET. The steps, including the API requests, are in Create the first owner. Configure email first, because setup finishes with an emailed code.
5. Send your first webhook
Create a project, a destination and a route, then send a test request: see Send your first webhook. For provider-specific signature checks, use the integration examples.
6. Keep it running
- Backup and database recovery: what to back up, including the encryption key, and how to restore.
- Upgrading an existing installation: the release migrator, the upgrade procedure and rollback.
- Event retention: how long completed events are kept.
- Executor: runtime modes for scripted endpoints.
- Diagnostic recording: how rejected requests are recorded within fixed limits.
Webhook integration examples
These examples run in Payload Bay's bounded workerd ingress stage. Copy the source from the linked template into the route's ingress editor, bind the named secret to ingress, save and publish.
Installation
The operator definition is deploy/compose.yml: PostgreSQL, Payload Bay app, worker and executor, plus a one-shot migrator. It uses prebuilt images and a persistent database volume.