Self-hosted app·Personal data, cameras and smart home
TREK hosting on a Cloud VPS
in Panama City.
TREK hosting on a 4 GB Cloud VPS in Panama City: Docker Compose setup, HTTPS proxy, backups to S3-compatible storage and the full monthly cost.
- Node.js
- React
- SQLite
- 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/07
Short answer.
Yes: TREK runs as one Docker container with an embedded SQLite database, and our Standard Cloud VPS in PTY1, Panama City (4 vCPU, 4 GB RAM, 160 GB NVMe and 15 TB of monthly transfer for $12.99 a month) has room for the application, a family's or a small team's uploads, and a sensible backup scheme. You can deploy it on Debian 13 from this link.
What decides whether you can recover from a bad day is the encryption key. TREK encrypts the secrets it stores, such as S3 credentials and the Web Push signing key, and a backup restored under a different key comes back with those secrets orphaned. Set ENCRYPTION_KEY yourself, keep a copy away from the server, and send backups somewhere other than the VPS disk.
02/07
What TREK is
and who builds it.
TREK is an open-source, self-hosted trip planner under the AGPL-3.0 licence. Everyone invited to a trip edits the same plan, and changes appear for the others immediately over a WebSocket connection. It installs from the browser as a progressive web app on iOS and Android and keeps trips readable offline, which is where a planner earns its keep: on the boat to Bocas del Toro, if the signal drops.
The project lives on GitHub under the liketrek organisation; its lead developer publishes as mauriceboe, which is why the Docker image is still called mauriceboe/trek. Releases come quickly. Version 5.0.0 (25 October 2026) added a Tours addon and a new database layer that migrates the SQLite file on first start, and 5.1.0 (31 October 2026) moved place search, address lookup and routing onto the project's own servers. This page is written against 5.1.0 and was checked on 5 November 2026. The journal, the AI assistant, the MCP server and road-trip planning are addons that ship disabled, so a fresh instance does less than the README suggests until an admin turns them on.
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/07
Requirements and sizing.
The stack is modest: Node.js 24 and NestJS on the server, React in the browser, SQLite on disk. There is no separate database container, no Redis and no job queue to size. Upstream publishes no minimum hardware figures, and we have not measured TREK's memory use.
| TREK 5.1.0 needs | Cloud VPS Standard provides | |
|---|---|---|
| Runtime | One container (mauriceboe/trek), Node.js 24, SQLite | Debian 13, 4 vCPU |
| Memory | No published minimum | 4 GB |
| Disk | data/ (database, keys, logs, local backups) and uploads/ (files up to 50 MB each, video up to 500 MB) | 160 GB NVMe |
| Inbound | 80 and 443 through a reverse proxy; port 3000 bound to localhost only | 1 Gbps |
| Outbound | TREK services in Frankfurt, Open-Meteo weather, Frankfurter exchange rates, map tile servers, your SMTP relay | 15 TB/month included, port 25 open |
Move up to Pro (8 GB, $22.99) if you install several plugins, since TREK runs each one in its own child process, or if a large group leans on booking import. A local language model for the assistant does not belong on any of these plans; point it at an external API or a separate machine. Running your own planet-wide geocoder or router is dedicated-server work for the same reason.
Disk is where people get caught. A TREK backup is a ZIP of the full database plus every uploaded file, and photos barely compress. With 20 GB of uploads, daily automatic backups and seven days of retention, the theoretical total is 20 + 7 × 20 = 160 GB, the entire disk of this plan before the operating system takes its share. TREK's storage settings accept any S3-compatible backend, so you can route the backups category to an object storage bucket and keep only live data on the VPS. The database itself stays on local NVMe: TREK does not offer to move it, and an SQLite file has no place on network storage. Transfer, by contrast, is not a constraint; 15 TB a month is roughly 500 GB a day (theoretical), and a trip planner moves JSON, thumbnails and the occasional PDF.
04/07
How to deploy it
with us.
The steps below take a fresh Standard VPS to a TREK instance behind HTTPS.
- 01Order the server from the deploy link and point an A record such as
trek.example.comat its IPv4 address.
- 02Install Docker from Docker's own apt repository rather than the snap package; the upstream compose file sets
no-new-privileges, and under snap's confinement the container then refuses to start.
apt update && apt install -y ca-certificates curl openssl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
echo "deb [signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian trixie stable" \
> /etc/apt/sources.list.d/docker.list
apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin- 03Fetch the upstream compose file and write the four variables it reads from
.env:
mkdir -p /opt/trek && cd /opt/trek
curl -fsSLO https://raw.githubusercontent.com/liketrek/TREK/main/docker-compose.yml
printf 'ENCRYPTION_KEY=%s\nTZ=America/Panama\nLOG_LEVEL=info\nALLOWED_ORIGINS=https://trek.example.com\n' \
"$(openssl rand -hex 32)" > .env
chmod 600 .env- 04Edit
docker-compose.yml. Pin the image rather than followinglatest, which jumps major versions; 5.0.0 migrated the database on first start, and that is a step to take on purpose. Bind the port to localhost, because Docker writes its own firewall rules for published ports and a port published on all interfaces stays reachable even when ufw says otherwise. Then uncomment the two proxy lines, since only the four.envvariables reach the container by interpolation.
image: mauriceboe/trek:5.1.0
ports:
- "127.0.0.1:3000:3000"
environment:
# existing lines unchanged, plus:
- FORCE_HTTPS=true
- TRUST_PROXY=1- 05Put Caddy in front. It fetches the certificate and passes the WebSocket upgrade on
/ws, without which real-time sync stops working, and it sets no default limit on request size, so backup restores up to TREK's 500 MB upload cap go through. On nginx, copy the upstream example, which handles both.
apt install -y caddy
printf 'trek.example.com {\n reverse_proxy 127.0.0.1:3000\n}\n' > /etc/caddy/Caddyfile
systemctl reload caddy- 06Start TREK with
docker compose up -d. On first boot it creates an admin account and prints the credentials todocker logs trek, unless you setADMIN_EMAILandADMIN_PASSWORD. Change the password and turn on TOTP before inviting anyone.
- 07Under Admin → Storage, add an S3 backend with your bucket's endpoint and access keys, press Test, and assign the Backups category to it. Under Admin → Backup, schedule a daily automatic backup. Then copy
.envand the bucket keys into your password manager: because the key is supplied as a variable, TREK leaves it out of the backup ZIP, and a restore onto a fresh server starts with you typing the bucket credentials in again.
Two smaller settings save a support ticket later. Set UNSPLASH_ACCESS_KEY with a free key, since without one cover-image search uses an unauthenticated endpoint that blocks some data-centre address ranges. For email notifications, enter an SMTP server in the admin panel; port 25 is open on every VPS, but a fresh IP address has no sending reputation, so an authenticated relay on port 587 delivers more reliably. With TZ=America/Panama, trip reminders go out at 09:00 Panama time.
05/07
What leaves the server,
and what stays.
Since 5.1.0, each installation registers itself with the TREK services and sends place searches, address lookups and route calculations to servers in Frankfurt. The project states that it does not log searches and counts only requests; we cannot verify that, and neither can you. If the list of places you are about to visit should stay in PTY1, set TREK_PLACES_ENABLED=false and pick FOSSGIS or your own Valhalla for routing in Admin → Settings. The release notes name TREK_SERVICES=off as the switch for the services as a whole, while the comment in the current compose file describes it more narrowly, so check outbound connections with ss -tnp afterwards. Search then falls back to OpenStreetMap services: still third parties, only different ones.
What stays on the server is the sensitive part, the dates your house stands empty and booking confirmations that sometimes carry passport numbers. In PTY1 it sits under Panamanian law. Article 29 of the 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, and Law 81 of 2019, implemented by Executive Decree 285 of 2021, governs personal data. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia. None of that amounts to immunity: Panama and the United States have had a mutual legal assistance treaty in force since 6 September 1995, and we act on decisions of a competent Panamanian authority. Our offshore hosting page sets out what this covers and what it does not.
06/07
Cost.
| Item | Per month |
|---|---|
| Cloud VPS Standard: 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB transfer, 1 Gbps | $12.99 |
| Daily VPS backups (+20 %) | $2.60 |
| 250 GB bucket: 250 GB S3-compatible bucket for TREK's own backups | $1.99 |
| Total for the setup on this page | $17.58 |
The server is the only required line. Billed yearly it comes down by roughly 25 %, to about $9.75 a month (the yearly price divided by twelve). If you keep only one backup line, keep the bucket: TREK's own backup is consistent and restores onto any other install, while the VPS backup copies the whole machine and earns its price mainly after an operating-system upgrade goes wrong. The bucket is billed by size only, with no request fees and no traffic charges.
Payment is in crypto only (AVAX, BCH, BNB, BTC, DOGE, ETH, LTC, SOL, TRX, USDC, USDT or XMR) against a US-dollar balance. 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, and the unused paid part of a top-up is refundable within 14 days. Signing up is no-KYC: an email address is enough, and every other plan is on the pricing page.
07/07
Limits and acceptable
use.
TREK's licence binds you rather than us. AGPL-3.0 lets you self-host freely for personal or internal company use; if you modify TREK and offer it as a network service to third parties, you must publish your modifications under the same licence.
Running the instance makes you its operator. Keep registration closed and add people through invite links, unless you want strangers storing files on your server. Updating the container is your job: TREK 4.3.4, released on 21 October 2026, existed only to ship a patched Node.js, and the maintainers asked everyone to install it at once. A public share link makes a trip readable without an account, which is publishing, and published content falls under our acceptable use policy, as does any mail your instance delivers directly over port 25. 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.
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 the $6.99 Starter plan enough for TREK?
Possibly, for one or two people with plugins and the AI assistant switched off. We have not measured TREK's memory use on 2 GB, so we recommend Standard. If you start on Starter anyway, keep TREK's backups in a bucket from day one, so that moving to a larger VPS later is a restore rather than a migration.
Does TREK need PostgreSQL or another database server?
No. Everything lives in one SQLite file, data/travel.db, next to the logs and key files in the data volume, while uploads sit in uploads. A Helm chart exists for Kubernetes, but a single VPS needs nothing beyond Docker and a reverse proxy.
Can I keep TREK's files in your object storage?
Yes, through TREK's S3 backend, which takes an endpoint, a bucket name and access keys. Trip documents, journal photos, cover images and backups can each be assigned to it. It is an S3 API and not a disk: do not mount the bucket with rclone under data/, and leave the database on local NVMe.
I run a travel agency with clients in the EU. Is hosting in Panama a problem?
It needs paperwork rather than a different host. Panama has no EU adequacy decision, so transferring EU clients' personal data to a server here requires appropriate safeguards under Article 46 GDPR, typically the 2021 standard contractual clauses. How they apply to your setup is a question for your own counsel, as is the AGPL if you modify TREK and give clients access to it.
How do I upgrade TREK without losing data?
Create a manual backup in Admin → Backup, check that data/ has free space at least the size of travel.db (major upgrades copy the database before migrating it), change the image tag, then run docker compose pull && docker compose up -d. If your compose file predates 5.0.1, add KILL to cap_add; without it every docker stop ends in a hard kill instead of a clean shutdown.
Sources
Every fact on this page, with its source
Consulted 5 Nov 2026 unless noted.
Panamanian law and authorities
- Article 29 of the Constitution of PanamaGaceta Oficial 25176 (Legispan)
- Law 81 of 26 March 2019 on personal data protection, implemented by Executive Decree 285 of 28 May 2021Gaceta Oficial 28743-A
EU and other countries
- CLOUD Act executive agreements limited to the United Kingdom and Australiajustice.gov · verified 31 Oct 2026
- Transfers without an adequacy decisionGDPR, Article 46
Industry, providers and software
- TREK repository and README — stack, Node.js and NestJS versions, reverse-proxy requirements, addon defaults, licence terms, file size limitsgithub.com/liketrek/TREK
- TREK 5.1.0 release notes, 31 October 2026 — TREK services in Frankfurt, request counting, TREK_SERVICESrelease v5.1.0
- TREK 5.0.1 release notes, 28 October 2026 — KILL capability for clean shutdownrelease v5.0.1
- TREK 5.0.0 release notes, 25 October 2026 — Tours addon, database copy before migrationrelease v5.0.0
- TREK 4.3.4 security release, 21 October 2026 — rebuild on patched Node.jsrelease v4.3.4
- Upstream docker-compose.yml — hardening options, environment variables, TREK_PLACES_ENABLED, UNSPLASH_ACCESS_KEY notedocker-compose.yml
- TREK wiki, Install: Docker Compose — snap limitation, .env interpolation, image tagsInstall-Docker-Compose
- TREK wiki, Backups — archive contents, encryption key handling, 500 MB upload limitBackups
- TREK wiki, Admin: Storage — S3 backends, content categories, encrypted credentials, restore from S3Admin-Storage
- TREK wiki, Notifications — SMTP requirement, reminders at 09:00 in the instance time zoneNotifications
Other references
- Panama–US 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.