Self-hosted app·Websites and CMS
KeystoneJS hosting
on a VPS in Panama City.
KeystoneJS hosting on a 4 vCPU / 4 GB VPS in Panama City: Keystone 8 with PostgreSQL in Docker, sizing, cost from $12.99/mo, and the v8 deployment traps.
- Node.js
- PostgreSQL
- GraphQL
- Docker
PTY1·Panama City
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Panama jurisdiction
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Panamanian law
01/06
What KeystoneJS is,
and who runs it.
Keystone is a headless CMS and application framework for Node.js. You describe the content model as lists and fields in keystone.ts; from that, Keystone generates a Prisma schema for the database, a GraphQL API served at /api/graphql, and an Admin UI built on Next.js. The code is MIT-licensed and copyrighted to Thinkmill, the Sydney software company that maintains it. The npm scope is @keystone-6/, which trips people up: the scope names the generation of the rewrite, while @keystone-6/core itself is at 8.1.0, released on 31 August 2026.
Two things follow for hosting. There is no Keystone server to install and no official Docker image to pull, because your project — schema, access rules, hooks — is the application, and you build the image from it. And Keystone 6 onwards speaks to PostgreSQL, MySQL or SQLite through Prisma and nothing else, so a MongoDB-backed Keystone 4 or 5 site is an application migration, not a redeploy (Keystone 5 is in maintenance mode).
The people who pick Keystone over a hosted CMS tend to be developers who want the content model in Git and access control written as code: agencies maintaining client sites, or product teams using it as an API back end rather than a page builder.
02/06
Requirements and sizing.
Keystone 8 requires Node.js 20.19 or newer. Debian 13 packages exactly 20.19.2, which clears the bar, but upstream support for Node 20 ended on 30 April 2026, so we would not build on it. Use the official node:24-trixie-slim image: Node 24 is an LTS line and the Trixie base matches the host. Node 26 entered LTS at the end of October 2026; we would give it a few months before moving a production CMS onto it.
Use PostgreSQL for the database. The create-keystone-app starter uses SQLite, and Keystone's own documentation says the SQLite provider is not intended for production: there is no decimal field, and timestamp values are limited to 1970–2038. MySQL and MariaDB work through Prisma's MariaDB adapter if you already run them, though nothing in Keystone favours them.
Keystone listens on port 3000. Only 80 and 443 on a reverse proxy, plus SSH, need to face the internet. Keep PostgreSQL's 5432 unpublished: Docker writes its own iptables rules, so a port listed under ports: is reachable from outside even when ufw reports it closed.
Memory peaks at build time, not at runtime. keystone build compiles the Admin UI with Next.js 16, and that is the step that pushes a small VPS into swap or the OOM killer.
| Situation | Plan | vCPU / RAM / NVMe | Transfer / port | Per month |
|---|---|---|---|---|
| Image built in CI, small schema, a few editors | Starter (vps-starter) | 2 / 2 GB / 80 GB | 10 TB / 1 Gbps | $6.99 |
| One Keystone app and PostgreSQL, built on the server | Standard (vps-standard) | 4 / 4 GB / 160 GB | 15 TB / 1 Gbps | $12.99 |
| Several Keystone apps, or a large database with local media | Pro (vps-pro) | 6 / 8 GB / 320 GB | 20 TB / 1 Gbps | $22.99 |
Standard is the default because it lets you build, run and keep PostgreSQL on one machine without juggling. Starter only makes sense when a CI job builds the image and the server merely pulls and runs it.
Our servers are in Panama City and answer to Panamanian law. A US DMCA notice has no legal effect here, and we act only on valid orders from competent Panamanian authorities.
03/06
How to deploy it
with us.
Order Standard with Debian 13. No-KYC: an email address is enough, and payment is in crypto. Point an A record such as cms.example.com at the server's IPv4 address, install Docker Engine and the Compose plugin from Docker's apt repository, and allow 22, 80 and 443 in the firewall.
Three Keystone 8 details have to be right in the project before it reaches the server. Migrations must exist as files: keystone dev syncs your local database with prisma db push and writes no migrations, so run keystone build --no-ui and then prisma migrate dev --name init locally, and commit migrations/. Without them, prisma migrate deploy in production has nothing to apply and Keystone starts against empty tables. Next, prisma.config.ts should read process.env.DATABASE_URL. Finally, the session configuration must take its secret from SESSION_SECRET, at least 32 characters long, because statelessSessions() generates a random secret at start-up when none is given, and every restart then signs out every editor.
The image is a two-stage build on the Node base image:
# Dockerfile
FROM node:24-trixie-slim AS build
WORKDIR /app
COPY . .
RUN npm ci && npx keystone build
FROM node:24-trixie-slim
ENV NODE_ENV=production
WORKDIR /app
COPY --from=build --chown=node:node /app ./
RUN mkdir -p /app/uploads && chown node:node /app/uploads
USER node
EXPOSE 3000
CMD ["npx", "keystone", "start"]Add a .dockerignore listing node_modules, .keystone, generated, .env and *.db so that local build output never ends up in the image. The Compose file runs PostgreSQL, a one-shot migration job, Keystone and Caddy:
# compose.yaml
services:
db:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_DB: keystone
POSTGRES_USER: keystone
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U keystone -d keystone"]
interval: 5s
timeout: 3s
retries: 20
migrate:
build: .
command: ["npx", "prisma", "migrate", "deploy"]
environment:
DATABASE_URL: postgresql://keystone:${POSTGRES_PASSWORD}@db:5432/keystone
depends_on:
db:
condition: service_healthy
restart: "no"
app:
build: .
restart: unless-stopped
environment:
DATABASE_URL: postgresql://keystone:${POSTGRES_PASSWORD}@db:5432/keystone
SESSION_SECRET: ${SESSION_SECRET}
volumes:
- uploads:/app/uploads
depends_on:
migrate:
condition: service_completed_successfully
caddy:
image: caddy:2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
depends_on:
- app
volumes:
pgdata:
uploads:
caddy_data:The migrate service applies committed migrations and exits, and Keystone starts only after it has succeeded. That is the separate release step the Keystone documentation now asks for, since 8.0 removed keystone start --with-migrations. Only Caddy publishes ports, and it obtains the TLS certificate on its own:
# Caddyfile
cms.example.com {
reverse_proxy app:3000
}echo "POSTGRES_PASSWORD=$(openssl rand -hex 24)" >> .env
echo "SESSION_SECRET=$(openssl rand -base64 48)" >> .env
docker compose up -d --build
docker compose logs -f appThe database password is hex rather than base64 because it ends up inside a connection URL, where / and + cause trouble.
- 01
The first admin account
Keystone 8 removed
initFirstItemand its/initpage, so a fresh production database offers no way in. Create the first account with a one-off script that goes through Keystone's context API, run it once inside the container, then delete it. With the starter'sUserlist, andtsxadded to your devDependencies:// scripts/create-admin.ts: run once, then delete import { getContext } from '@keystone-6/core/context' import * as PrismaModule from '../generated/prisma/client' import config from '../keystone' async function main() { const context = getContext(config, PrismaModule) await context.sudo().db.User.createOne({ data: { name: 'Admin', email: process.env.ADMIN_EMAIL!, password: process.env.ADMIN_PASSWORD!, }, }) await context.prisma.$disconnect() } main()docker compose run --rm -e ADMIN_EMAIL=you@example.com -e ADMIN_PASSWORD='…' \ app npx tsx scripts/create-admin.tsThen sign in at
https://cms.example.com/signin. - 02
Updates and backups
git pull && docker compose up -d --buildrebuilds the image, applies pending migrations and restarts Keystone. Read the generated SQL before a Keystone major upgrade reaches production. One case from 8.0: enum names for pluralselectfields are no longer singularised, and on PostgreSQL Prisma may express the rename as dropping the column and adding it back, data included. The migration guide gives the singleALTER TYPE … RENAME TOto use instead.For the data, a nightly
docker compose exec -T db pg_dump -U keystone -Fc keystone > keystone.dump, copied off the server with restic or rclone to an S3 bucket, is the backup that restores into any PostgreSQL. Our daily VPS backups (+20 %) protect the machine as a whole. You want both. - 03
Where uploads go
In Keystone 8, every
image()andfile()field takes a storage object with three functions,put,deleteandurl, and you write them. For a small site the local disk is fine: write into/app/uploadswithnode:fs(the Compose file keeps it on a named volume) and serve the directory throughserver.extendExpressApp, for example withexpress.static. When media grows, point the strategy at our object storage instead. Keystone's S3 example works with the AWS SDK v3 client once you setendpointto the value shown in your client panel, add your access keys and setforcePathStyle: true.Buckets have unlimited traffic and are billed by size alone, so images fetched straight from the bucket do not count against the VPS's 15 TB, provided visitors fetch from the bucket and not through Keystone. A bucket is reached through the S3 API: never mount it as a disk, and never put PostgreSQL's data directory on it.
04/06
Cost.
| Item | Per month |
|---|---|
Cloud VPS Standard (vps-standard): 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB transfer, 1 Gbps | $12.99 |
| Daily backups (+20 %) | $2.60 |
Object storage, 250 GB (storage-250): unlimited traffic, no request fees | $1.99 |
| Total for the setup on this page | $17.58 |
Both add-ons are optional; Keystone runs on the $12.99 plan alone, and outbound port 25 comes with it. Yearly billing takes roughly 25 % off, which puts Standard near $9.75 a month (a calculation, not a list price). An extra IPv4 costs $2 a month and priority support $10. Payment is crypto only — AVAX, BCH, BNB, BTC, DOGE, ETH, LTC, SOL, TRX, USDC, USDT or XMR — with prices and balances in US dollars, and business customers paying in crypto are welcome. Top-ups run from $25 to $5,000 with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, so $100 becomes $110 of credit; the unused paid part of a top-up is refundable within 14 days. Every plan is on the pricing page.
05/06
What hosting in Panama changes,
and what it does not.
A Keystone database holds your editors' email addresses and password hashes, often your site's users as well, so you are processing personal data. Panama's rules for that are Law 81 of 26 March 2019 and its implementing Executive Decree 285 of 28 May 2021. Panama has no EU adequacy decision: if people in your User list are in the EU, the transfer needs appropriate safeguards such as the 2021 standard contractual clauses.
On foreign requests, the US Department of Justice listed CLOUD Act executive agreements with the United Kingdom and Australia only as of 31 October 2026, and Panama is not among them. That is not immunity. A mutual legal assistance treaty in criminal matters has bound Panama and the United States since 6 September 1995, and requests under it run through Panamanian authorities, under a Constitution whose Article 29 allows private communications to be intercepted only on the order of a judicial authority. Law 51 of 2009 obliges telecommunications companies and other communication networks that provide the service to keep certain user data for six months; whether it reaches a hosting provider is a question for Panamanian counsel, and we prefer saying so to guessing. One thing the jurisdiction cannot change: files sent to Cloudinary through @keystone-6/cloudinary, or mail relayed by a US provider, sit where those services sit. The longer version is on our offshore hosting page.
06/06
Limits and your
obligations.
VPS transfer is included per plan, not unmetered: 15 TB a month on Standard, which averages about 46 Mbit/s over 30 days (theoretical).
A DMCA notice has no legal effect on servers in Panama. We forward copyright complaints to the customer and act on a decision of a competent Panamanian authority, or where the content is manifestly unlawful. What you publish through Keystone is yours to answer for, and so is the code that decides who may publish. The create-keystone-app starter schema sets access: allowAll on its lists, with a comment warning that anyone can create, query, update and delete anything; deployed unchanged, that applies to whoever finds /api/graphql. Replace it before the DNS record goes live, set graphql.maxTake on public lists, and keep NODE_ENV=production, which switches off the GraphQL playground and stack traces in error responses.
Patching is also yours. Keystone's 6.x line shipped two access-control fixes in 2026: 6.5.2 in March for CVE-2026-33326 (field filter rules bypassed through a cursor) and 6.5.3 in July for GHSA-cqmq-8755-7xvh (maxTake bypassed with a negative value). If you are not ready to move to 8.x, 6.5.3 is the minimum.
Port 25 is open on every VPS, which matters if you build password-reset mail yourself now that 8.0 has removed passwordResetLink and magicAuthLink from @keystone-6/auth. For anything else, open a support ticket from the client panel.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| TitanDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Titan |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions
people ask first.
Short answers about running this in PTY1. If yours is not here, open a ticket from your panel.
Is there an official KeystoneJS Docker image?
No. Keystone is a library your project depends on, so the image is your own project built on a Node base image. The two-stage Dockerfile above, on node:24-trixie-slim, is all of it.
Can I skip PostgreSQL and use SQLite on the VPS?
You can, and Keystone's documentation advises against it for production: no decimal fields, timestamps limited to 1970–2038, and filtering whose case sensitivity differs from PostgreSQL. On a 4 GB VPS, PostgreSQL costs little and removes those limits.
Why does everyone get logged out each time I redeploy?
SESSION_SECRET is missing or changes between deploys. Without it, Keystone generates a random secret at each start and old cookies no longer decrypt. Put a fixed value of at least 32 characters in .env.
My tutorial says keystone start --with-migrations. Why does it fail?
That flag and the keystone prisma command were removed in 8.0. Run prisma migrate deploy first (the migrate service above), then keystone start.
Can I keep uploads in Panama Host object storage?
Yes, through the S3 API from your field's storage strategy, using @aws-sdk/client-s3 with our endpoint and forcePathStyle: true. Buckets are not block devices: there is no mkfs and no mounting one under the database.
Do I need to send identity documents?
No. No-KYC: an email address is enough. Payment is in crypto, with prices in US dollars; the details are on our no-KYC hosting page.
Sources
Every fact on this page, with its source
Consulted 5 Nov 2026 unless noted.
Panamanian law and authorities
- Law 81 of 26 March 2019 on personal data protection, implemented by Executive Decree 285 of 28 May 2021Gaceta Oficial 28743-A
- Law 51 of 2009, six-month retention (art. 6)Gaceta Oficial 26374
- Article 29 of the Constitution of PanamaGaceta Oficial 25176 (Legispan)
EU and other countries
- CLOUD Act executive agreements limited to the United Kingdom and Australiajustice.gov · verified 31 Oct 2026
- No EU adequacy decision for Panama; safeguards under GDPR Article 46 and the 2021 standard contractual clausesRegulation (EU) 2016/679
Industry, providers and software
- Keystone 8.0.0 breaking changes (28 July 2026), 8.1.0 (31 August 2026), 7.0.0 (21 July 2026) and the 6.5.3 fix for GHSA-cqmq-8755-7xvh (1 July 2026)keystonejs/keystone releases
- Keystone 6.5.2 and CVE-2026-33326 (19 March 2026)release 2026-03-19
- MIT licence, Thinkmill copyright, Keystone 5 in maintenance modekeystonejs/keystone README
- Starter schema with access: allowAll and its warning commentcreate-keystone-app PR #369
- Node.js 20.19.2 in Debian 13sources.debian.org
Other references
- Node.js 20.19+ requirement, Prisma 7 driver adapters, field storage strategies, removal of initFirstItem, PostgreSQL enum renameMigrate to @keystone-6/core@8.0.0
- keystone build, keystone start, prisma migrate deploy as a separate release step, db push in keystone devCommand Line
- Default port 3000, /api/graphql, playground and debug defaults, SQLite provider limitationsSystem Configuration
- SQLite not recommended in productionChoosing the right Database
- Session secret of at least 32 charactersSession API
- S3 storage strategy with the AWS SDK v3Images and Files
- Node.js 20 end-of-life, Node.js 24 and 26 LTS statusNode.js Releases
- node:24-trixie-slim imageDocker Official Image: node
- Panama–United States mutual legal assistance treaty, signed 1991, in force 6 September 1995US Department of State
Your server in Panama,
ready when you are.
Cloud VPS start at $6.99 a month and are ready 60 to 120 seconds after you order.