Self-hosting
An overview of running TrayPage yourself, and how to choose between Cloudflare, Docker / VPS, and AWS.
Besides using tray.page (the hosted service), you can run TrayPage on your own Cloudflare account or your own server. This page helps you choose a setup; the steps live on one page per setup.
Choosing a setup
| Setup | Good for | Operational effort | Rough cost |
|---|---|---|---|
| tray.page (hosted) | Getting started immediately, with operations handled for you | None | Depends on the plan |
| Cloudflare | Running on your own account without managing servers | Low | From about $5-10 per month |
| Docker / VPS | Keeping costs low, or running in a closed network | Medium (you handle updates and backups) | From a few dollars per month |
| AWS (Fargate + RDS) | Production in your own AWS account | Medium to high | About $200 per month for the default setup (about $125 for a small one) |
Costs are rough estimates. Actual amounts depend on your provider's pricing and your usage.
If you are unsure:
- You want someone else to operate it: tray.page
- You want it on your own account but do not want to manage servers: Cloudflare
- You want a single machine with no dependency on external services, such as inside an internal network: Docker / VPS
- Your data must live in your AWS account: AWS (Fargate + RDS for production; to try it on a single EC2 instance, follow the Docker / VPS steps on EC2)
What is the same in every setup
- The application (web UI, REST API, MCP, shared pages) is the same build, and the main features are the same in every setup. When you run on Cloudflare, you also get faithful PDF export and a waiting CLI is notified as soon as a review is finished. On Docker / VPS and AWS, PDF export uses the browser's "Print / save as PDF", and the CLI checks for the result every few seconds. Notification emails for comments and new versions work in every setup.
- Data is stored in two places: a Postgres database, and a store for page content (R2 or S3-compatible storage).
- Page content can contain arbitrary HTML, so it must be served from a viewer host that is separate from the app host. Prepare two domain names. See Security notes for the reason.
- By default, sign-in uses an emailed link, so you need a way to send email (SMTP or Cloudflare Email Service) and a sender address on a domain it can send from (
EMAIL_FROM). - The self-hosted edition (
TRAYPAGE_EDITION=self_hosted) has no usage limits or trials, and operator-only features are disabled. It also hides the tray.page landing page, pricing, terms, and contact pages; opening/takes you to the sign-in screen.