Self-hosted app·Online shops and hotel booking
Spree Commerce hosting
in Panama City.
Spree Commerce hosting in Panama City: Spree 6.0.1 on Docker with PostgreSQL 18 on our 8 GB VPS Pro. Sizing, compose file, costs and limits.
- Ruby on Rails
- Next.js
- PostgreSQL
- Redis
PTY1·Panama City
In stockRecommended for this use case
- 1 Gbps port20 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: $206.99 a year, about 25% less
- No KYC
- Crypto only
- Panama jurisdiction
- 6 vCPU, 8 GB RAM
- 320 GB NVMe local storage
- 20 TB transfer on a 1 Gbps port
- DDoS protection included
- Panamanian law
01/06
Short answer.
Yes. Spree 6 runs comfortably on our VPS Pro in PTY1, Panama City: 6 vCPU, 8 GB of RAM, 320 GB of NVMe and 20 TB of monthly transfer for $22.99 a month. The official Docker image plus a PostgreSQL 18 container is a complete store, with no Redis and no separate worker to run, and 8 GB leaves room for the Next.js storefront on the same machine.
What decides whether the install is safe is not the plan but the port list. Docker publishes container ports through its own iptables rules, evaluated before ufw sees the packet, so a 5432:5432 line added "just for psql" exposes your customer database to the internet whatever the host firewall says. Publish Caddy on 80 and 443, and nothing else.
02/06
What Spree is,
and who runs it.
Spree is an open-source commerce backend written in Ruby on Rails. Sean Schofield started it in 2007; it is maintained today by Vendo, which publishes the gems as Vendo Connect Inc. Version 5.4, in April 2026, brought a new REST API, a TypeScript SDK and a Next.js storefront that you fork and own rather than theme. Version 6.0.0 followed on 27 October 2026 and 6.0.1 two days later. The maintainers describe 6.0 as a rewrite of the core: the React dashboard becomes the admin, and the open-source package gains a marketplace layer with seller commissions and Stripe Connect payouts, plus B2B company accounts with their own catalogues and price lists.
The people who self-host it are usually the ones a SaaS checkout cannot accommodate. A distributor in the Colón Free Zone selling to retailers in Colombia and Costa Rica, with negotiated prices per customer group, minimum order quantities and separate markets in COP, CRC and USD, is a typical Spree shop; so is a marketplace that splits one basket across several sellers. Agencies and anyone building a hosted product on Spree should read the licence first. The core returned to BSD-3-Clause in early 2026 after an AGPL-3.0 period that began with 4.10, while the project's licensing page still lists a multi-store module under AGPL-3.0 and Enterprise Edition modules under a commercial licence. A single store on your own VPS needs only the BSD core.
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
Requirements and sizing.
Since 5.6 the minimum production deployment is one application container and one database. Background jobs, cache and websockets go through Solid Queue, Solid Cache and Solid Cable, which keep their state in the database, so Redis has become optional. The image is built for amd64 and arm64, carries its own Ruby and Rails 8.1 runtime, runs migrations on boot and listens on port 3000. PostgreSQL is the recommended database; MySQL, MariaDB and SQLite are supported.
Spree's documentation gives two memory figures: a store starts on 1 GB, and each web process needs roughly 1 GB. Plan around the second. WEB_CONCURRENCY sets the number of Puma processes, and auto means one per CPU core, which on a 6-vCPU VPS is six processes and, by Spree's own estimate, about 6 GB before PostgreSQL gets anything. Two processes with the default three threads each is the right start on 8 GB.
| Plan | vCPU / RAM / NVMe | Transfer / port | Price per month | Where it fits |
|---|---|---|---|---|
| Standard | 4 / 4 GB / 160 GB | 15 TB / 1 Gbps | $12.99 | Staging, or a headless backend whose storefront runs elsewhere |
| Pro (recommended) | 6 / 8 GB / 320 GB | 20 TB / 1 Gbps | $22.99 | A production store: API, dashboard, jobs, PostgreSQL and the Next.js storefront on one machine |
| Power | 12 / 16 GB / 640 GB | 40 TB / 2 Gbps | $42.99 | Large catalogues with Meilisearch, a dedicated bin/jobs worker, heavy CSV imports |
On the Pro we budget about 2 GB of shared_buffers for PostgreSQL, two Puma processes at roughly 1 GB each, and leave the rest to the storefront's Node process, image variant processing, Caddy and the page cache. Disk is rarely the limit once product images live in object storage; kept on the VPS, 10,000 products with five 2.5 MB originals each already come to 125 GB before resized variants (theoretical). Beyond the Power, a dedicated server such as Iron (EPYC 4244P, 32 GB of DDR5 ECC, $64.99 a month) gives PostgreSQL cores of its own and unmetered traffic under fair use, though most single stores never get there.
04/06
How to deploy Spree
with Docker on our VPS.
- 01
1. Order the server and point DNS
Order the VPS Pro with Debian 13 from the link above, or compare plans on the pricing page. No-KYC: an email address is enough to open an account, and payment is in crypto; no-KYC hosting explains what we do and do not ask. Create an
Arecord for the shop's domain pointing at the VPS IPv4 before starting Caddy, which can only obtain a Let's Encrypt certificate once the name resolves.Install Docker Engine from Docker's own repository rather than Debian's
docker.iopackage. Spree's guide asks for Engine 28.0.1 or newer, since older engines let hosts on the same network reach container ports that were never published.curl -fsSL https://get.docker.com | sh docker version --format '{{.Server.Version}}' # expect 28.0.1 or later mkdir -p /opt/spree && cd /opt/spree - 02
2. The compose file
# /opt/spree/compose.yaml services: postgres: image: postgres:18-alpine restart: unless-stopped shm_size: 256mb command: ["postgres", "-c", "shared_buffers=2GB", "-c", "effective_cache_size=5GB"] environment: POSTGRES_USER: spree POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: spree_production volumes: - pg_data:/var/lib/postgresql # PostgreSQL 18 layout; must be empty on first boot healthcheck: test: ["CMD-SHELL", "pg_isready -U spree -d spree_production"] interval: 5s retries: 10 # no ports: reachable only from the compose network web: image: ghcr.io/spree/spree:6.0.1 # pin the version; never :latest in production restart: unless-stopped depends_on: postgres: condition: service_healthy env_file: .env environment: DATABASE_URL: postgres://spree:${POSTGRES_PASSWORD}@postgres:5432/spree_production WEB_CONCURRENCY: "2" RAILS_MAX_THREADS: "3" SOLID_QUEUE_IN_PUMA: "true" volumes: - spree_storage:/rails/storage # only used while uploads stay on local disk healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:3000/up || exit 1"] interval: 10s retries: 10 start_period: 60s # no ports: Caddy reaches it as web:3000 caddy: image: caddy:2 restart: unless-stopped ports: - "80:80" - "443:443" command: caddy reverse-proxy --from shop.example.com --to web:3000 volumes: - caddy_data:/data volumes: pg_data: spree_storage: caddy_data:Two details are deliberate. PostgreSQL 18 images keep their data in a version-specific directory under
/var/lib/postgresql, so the volume must start empty; data carried over from PostgreSQL 17 has to be dumped and restored, or run throughpg_upgrade. Docker's default 64 MB/dev/shmis too small for parallel queries onceshared_buffersis raised, henceshm_size. If you want a debug port later, bind it to loopback (127.0.0.1:5432:5432) or usedocker compose exec postgres psqlinstead. - 03
3. Secrets and first boot
Create
/opt/spree/.envwith permissions600:POSTGRES_PASSWORD= # openssl rand -hex 24 SECRET_KEY_BASE= # openssl rand -hex 64 ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY= ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY= ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT= SPREE_HOST=shop.example.com # name used by the 6.0 Docker guide RAILS_HOST=shop.example.com # same setting under its older name MISSION_CONTROL_USER=jobs MISSION_CONTROL_PASSWORD= # protects the /jobs dashboardGenerate the three encryption keys with
docker compose run --rm --no-deps web bin/rails db:encryption:init, or withspree encryption init --printfrom the Spree CLI on your workstation. Spree encrypts secrets at rest with them, payment gateway credentials included, and they must never change once data has been encrypted, so keep a copy of.envsomewhere other than the VPS. Then rundocker compose up -dand followdocker compose logs -f webuntil the migrations finish and/upanswers. The admin lives at/dashboard, the job monitor at/jobs. - 04
4. Product images in object storage
Without storage credentials Spree writes uploads to the container's filesystem, which is why the compose file mounts a volume at
/rails/storage. For production, put them in a bucket from our object storage: 250 GB costs $1.99 a month, billed by size only, with no request fees and no charge for traffic in either direction. It is an S3-compatible API with an endpoint and access keys, not a disk; nothing gets formatted or mounted.The stock image picks its storage provider from environment variables and knows two, AWS S3 and Cloudflare R2. The R2 set accepts an arbitrary endpoint URL, which makes it the route to our endpoint without rebuilding the image:
CLOUDFLARE_ENDPOINT=https://<endpoint-from-your-client-panel> CLOUDFLARE_ACCESS_KEY_ID=... CLOUDFLARE_SECRET_ACCESS_KEY=... CLOUDFLARE_BUCKET=spree-productionIn a project ejected with
spree eject, the cleaner option is your own Active StorageS3service inconfig/storage.yml, withendpoint:andforce_path_style: true. Either way the dashboard uploads straight to the bucket, which therefore needs a CORS rule allowingPUTfrom the dashboard's origin. - 05
5. Mail, backups and updates
Spree sends order confirmations through
SMTP_HOST; leave it unset and production mail is simply off. Outbound port 25 is open on every VPS, so you can run Postfix yourself, but a new IP has no sending reputation, and an order confirmation in the spam folder costs more in support tickets than a relay subscription does. Either way, publish SPF, DKIM and DMARC for the sending domain.The daily backup option (+20 %) restores the whole machine; it is not a database dump you can load into a fresh install. Add a nightly logical dump to the bucket under its own prefix, with
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYandRESTIC_PASSWORDset in the cron environment, and never put the PostgreSQL data directory on anrclone mount:docker compose exec -T postgres pg_dump -U spree -Fc spree_production \ | restic -r s3:https://<endpoint>/<bucket>/restic backup --stdin --stdin-filename spree.dumpAn update is a tag change followed by
docker compose pull && docker compose up -d, with a few seconds of downtime while the container restarts and migrates. Spree ships security fixes in patch releases (5.5.4, in July 2026, closed advisory GHSA-4825-p4xm-pcf2), so watch the GitHub releases. Moving from 5.x to 6.0 involves data migrations of its own: take a dump and follow the official 5.6-to-6.0 guide rather than bumping the tag. Spree says it has no phone-home dependencies, yet the 6.0 dashboard shows update notifications.
05/06
What it costs.
Spree itself has no licence fee and no per-order fee; your payment processor charges its own. On our side, a realistic production setup comes to this:
| Item | Per month |
|---|---|
| VPS Pro (6 vCPU, 8 GB, 320 GB NVMe, 20 TB transfer, 1 Gbps) | $22.99 |
| Daily VPS backups (+20 %) | $4.60 |
| Object storage, 250 GB | $1.99 |
| Total | $29.58 |
Yearly billing takes roughly 25 % off the VPS, bringing it near $17.25 a month (theoretical, rounded). Full root, one IPv4 (extra addresses $2 a month) and open outbound port 25 are included. VPS traffic is not unmetered: the Pro includes 20 TB a month, which spread evenly is about 62 Mbit/s around the clock, or some 8 million page views at 2.5 MB each (both theoretical). Images that browsers fetch directly from the bucket do not count against that allowance, one more reason to move them there.
Payment is in 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; the unused paid part of a top-up is refundable within 14 days.
06/06
Jurisdiction,
limits and acceptable use.
A shop is a database of names, delivery addresses and order histories, and you are its controller, not us. The local framework is Panama's Law 81 of 2019 on personal data protection, implemented by Executive Decree 285 of 2021. Selling to buyers in the EU brings the GDPR's transfer rules with it: Panama has no EU adequacy decision, so EU customers' data needs appropriate safeguards here, such as the 2021 standard contractual clauses. As for our own records, Law 51 of 2009 requires telecommunications companies and other communication networks that provide the service to keep certain user data for six months; whether it covers a hosting provider is a question for Panamanian counsel, and we will not claim that nothing is kept.
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. For a shop the complaint is usually a product photo or description copied from a brand's site. Answer it anyway, because the payment processor behind your checkout reads such complaints too.
We do not host shops that take payment and do not ship, storefronts that imitate a real brand to collect logins or card numbers, counterfeit goods, checkouts used to test stolen cards, or malware distribution. These are manifestly unlawful and come down without waiting for a court; the full rules are in our acceptable use policy. Your side of the arrangement is to keep Spree and the base images patched, to use your payment provider's hosted fields so card numbers never touch the VPS and your PCI DSS scope stays small, and to follow the consumer and tax law of the countries you sell into. No-KYC hosting covers your relationship with us and nobody else: Stripe, Adyen and PayPal, the processors Spree integrates natively, verify you as a merchant whatever server the shop runs on.
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 |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProRecommendedProduction | 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.
Do I still need Redis or Sidekiq for Spree 6?
No. Since Spree 5.6, background jobs, cache and websockets run on Solid Queue, Solid Cache and Solid Cable, which store their data in the main database, and jobs run inside the web container by default. Sidekiq on Redis or Valkey remains supported for heavy job volumes, and moving jobs to a dedicated bin/jobs container takes only SOLID_QUEUE_IN_PUMA=false on the web service.
Can the Next.js storefront run on the same VPS?
Yes, on the VPS Pro: run it as another container behind the same Caddy instance, with SPREE_API_URL and SPREE_PUBLISHABLE_KEY pointing at your backend. Build the image on your workstation or in CI and pull it, because a production next build on the server competes for memory with the live store. create-spree-app itself requires Node.js 24 or newer and Docker.
I pay for hosting in crypto. Can my shop still take card payments?
Yes. You pay us in crypto; your customers pay through whichever processor you configure in Spree, typically Stripe, Adyen or PayPal. Those processors run their own merchant verification and set their own rules on what you may sell, regardless of where the server sits. Accepting crypto from your own customers needs a third-party payment integration, since it is not among Spree's built-in providers.
Does hosting in Panama keep customer data away from US courts?
Not as a blanket rule. Article 29 of Panama's Constitution allows private communications to be intercepted only on a judicial order, and private documents to be examined only on the order of a competent authority for specific purposes. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia. A mutual legal assistance treaty in criminal matters between Panama and the United States has been in force since 6 September 1995, however, so US requests have a route; it runs through Panamanian authorities rather than straight to us. The offshore hosting page covers the jurisdiction in more detail.
Is Spree the right choice for a small shop?
Only if you need what it does differently. A store with a few dozen products, one currency and standard shipping will spend more hours on updates, mail and backups than it saves in platform fees.
Sources
Every fact on this page, with its source
Consulted 5 Nov 2026 unless noted.
Panamanian law and authorities
- Panama, Law 81 of 26 March 2019 on personal data protection, Gaceta Oficial 28743-A; implemented by Executive Decree 285 of 28 May 2021gacetaoficial.gob.pa
- Panama, Law 51 of 2009, art. 6, Gaceta Oficial 26374gacetaoficial.gob.pa
- Political Constitution of Panama, art. 29, Gaceta Oficial 25176 (Legispan)s3-legispan.asamblea.gob.pa
EU and other countries
- US Department of Justice, CLOUD Act resources (verified 31 October 2026)justice.gov · verified 31 Oct 2026
- GDPR, art. 46 (appropriate safeguards)eur-lex.europa.eu
- Commission Implementing Decision (EU) 2021/914 on standard contractual clauseseur-lex.europa.eu
Industry, providers and software
- Spree 6.0.1 release notes, GitHub, released 29 October 2026 (consulted 5 November 2026)github.com
- Spree release history (5.4 Next.js storefront and SDK; 5.6 removal of the Redis requirement; 6.0 beta notes; 5.5.4 security patch), GitHub (consulted 5 November 2026)github.com
- Spree AWS EC2 guide (Caddy reverse proxy, /dashboard, update procedure) (consulted 5 November 2026)spreecommerce.org
Other references
- Spree 6.0.0 release date (27 October 2026), RubyGems spree_api versions (consulted 5 November 2026)rubygems.org
- Spree Docker deployment guide (compose file, PostgreSQL 18 volume, published ports and firewalls, Engine 28.0.1, required variables, official image) (consulted 5 November 2026)spreecommerce.org
- Spree deployment overview (one container plus one database, 1 GB starting footprint, supported databases, no phone-home dependencies) (consulted 5 November 2026)spreecommerce.org
- Spree environment variables (WEB_CONCURRENCY and ~1 GB per process, RAILS_MAX_THREADS, Mission Control, SMTP, S3 and R2 storage) (consulted 5 November 2026)spreecommerce.org
- Spree asset storage and CORS for direct uploads (consulted 5 November 2026)spreecommerce.org
- Spree database configuration (PostgreSQL, MySQL, SQLite in production) (consulted 5 November 2026)spreecommerce.org
- Spree licensing (BSD-3-Clause core, AGPL-3.0 period from 4.10, multi-store and Enterprise modules) (consulted 5 November 2026)spreecommerce.org
- Next.js storefront deployment (SPREE_API_URL, SPREE_PUBLISHABLE_KEY) (consulted 5 November 2026)spreecommerce.org
- US Department of State, Panama–US Mutual Legal Assistance Treaty, in force 6 September 1995state.gov
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.