New AMD EPYC dedicated servers in the Swiss Alps, from $64.99 a month See servers

Pay with
EN

Self-hosted app·Websites, APIs and internal tools

ChartDB hosting on a Swiss VPS in ALP1.

ChartDB hosting on a $6.99 Swiss VPS in ALP1: Docker Compose on Debian 13, Caddy with a password, where your diagrams really live, and the limits.

Runs here
  • Docker
  • PostgreSQL
  • MySQL

ALP1·Swiss Alps

In stock

Recommended for this use case

Cloud VPS · Staging, devStarter · 2 vCPU · 2 GB RAM$6.99/mo80 GB NVMe · 10 TB transfer · 1 Gbps
  • 1 Gbps port10 TB of transfer a monthIncluded
  • Debian 13preinstalled with the orderIncluded
  • DDoS protection, 1 IPv4VNC console and full rootIncluded
Per month$6.99/mo

Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less

Deploy VPS Starter
  • No KYC
  • Crypto only
  • Swiss jurisdiction

ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto

  • 2 vCPU, 2 GB RAM
  • 80 GB NVMe local storage
  • 10 TB transfer on a 1 Gbps port
  • DDoS protection included
  • Swiss jurisdiction, outside the EU

01/06

Short answer.

Yes. ChartDB runs on our smallest plan, Cloud VPS Starter: 2 vCPU, 2 GB of RAM, 80 GB of NVMe and 10 TB of monthly transfer for $6.99 a month, installed with Debian 13 in ALP1, our facility in the Swiss Alps. Sizing is not where the decisions are. The official image is nginx serving a compiled front end, and every diagram you draw is stored in the browser of the person who drew it, not on the server. Hosting ChartDB properly comes down to putting a password in front of an application that has no login of its own, and settling how diagrams get exported, shared and kept.

Deploy Cloud VPS Starter with Debian 13

02/06

What ChartDB is, and who runs it.

ChartDB is an open-source editor for entity-relationship diagrams, written in TypeScript and licensed under the AGPL-3.0. Its developers also sell a hosted version at app.chartdb.io with paid tiers. The self-hosted build has no licence key or seat count, but the cloud's team features (private shared diagrams, user accounts, versioning) are not in it: on your own server, sharing a diagram means exporting a file and sending it.

How a schema gets in is the part to understand before you deploy. ChartDB hands you a "Smart Query" for your database engine; you run it yourself, in psql or whichever client you already use, and paste the JSON it returns into the editor. ChartDB never opens a connection to your database and never asks for its password. It also imports SQL DDL and has a DBML editor. The README lists PostgreSQL, MySQL, SQL Server, MariaDB, SQLite (including Cloudflare D1), CockroachDB and ClickHouse, and version 1.20.0 added Oracle to the DDL import. Diagrams go back out as DDL, DBML, JSON or SVG, and since 1.20.0 the conversion from PostgreSQL to MySQL or SQL Server is generated deterministically rather than by a language model.

The people who self-host it are usually those who cannot paste a schema into somebody else's service: a consultancy in Lausanne documenting a client's MariaDB under an NDA, or a team in Basel mapping a twenty-year-old PostgreSQL before a migration. Be clear about what self-hosting changes, though. The vendor's free tier also keeps diagrams in browser storage, so what you gain is control over the code that reads your schema, over the analytics script and over the address, not a different storage model.

As of 4 November 2026 the latest source release is v1.21.0, tagged on 1 November 2026, while the newest image in the project's registry, ghcr.io/chartdb/chartdb, is still 1.20.1 from April. The setup below pins 1.20.1; change the tag once a 1.21.0 image is published.

Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.

03/06

Requirements and sizing.

The container runs nginx on port 80 and serves static files. Parsing, layout and storage all happen in the browser, so a 400-table schema makes the laptop's fan spin, not the server's.

What ChartDB usesCloud VPS Starter
CPUstatic file serving, effectively idle2 vCPU
RAMnginx plus Caddy: not measured2 GB
Diskimages only, no data volume: not measured80 GB NVMe
Networkone download of the app per cold load: not measured10 TB/month, 1 Gbps
Public ports80 and 443, both on Caddy—

Starter is far more machine than ChartDB will use, and we would rather say so than sell you Standard: the larger plan buys nothing for this application. The spare capacity is worth something if you run other small services on the same host, a status page with Uptime Kuma for instance. VPS traffic is not unmetered, but the included 10 TB is no constraint here. Suppose, generously, that a cold load costs 10 MB: 10 TB then covers about a million cold loads a month, and a team of twenty opening the editor from scratch every working day would use around 4 GB (both theoretical). Browser caching makes the real figure smaller still.

04/06

Deploying ChartDB with Docker on Debian 13.

Order Cloud VPS Starter with Debian 13, then point a DNS A record, say erd.example.com, at the server's IPv4 address; Caddy needs it to obtain a certificate. Install Docker Engine from Docker's own repository, which lists Debian 13 (trixie) as supported:

bash
apt update && apt install -y ca-certificates curl install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc chmod a+r /etc/apt/keyrings/docker.asc cat > /etc/apt/sources.list.d/docker.sources <<'EOF' Types: deb URIs: https://download.docker.com/linux/debian Suites: trixie Components: stable Signed-By: /etc/apt/keyrings/docker.asc EOF apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

Then create /opt/chartdb/compose.yaml:

yaml
services: chartdb: image: ghcr.io/chartdb/chartdb:1.20.1 restart: unless-stopped environment: DISABLE_ANALYTICS: "true" HIDE_CHARTDB_CLOUD: "true" # no "ports:" here on purpose: only Caddy is reachable from outside caddy: image: caddy:2 restart: unless-stopped ports: - "80:80" - "443:443" volumes: - ./Caddyfile:/etc/caddy/Caddyfile:ro - caddy_data:/data # certificates; keep this volume - caddy_config:/config depends_on: - chartdb volumes: caddy_data: caddy_config:

The ChartDB service publishes no port, and that is deliberate. Docker installs its own packet-filter rules for published ports, and they bypass what you configure in ufw or nftables, so a -p 8080:80 left over from a quick test is reachable from the internet whatever your firewall says. Only Caddy listens publicly, on 80 for the certificate challenge and the redirect and on 443 for everything else.

Generate a password hash. Run this way, the command prompts for the password twice, which keeps it out of your shell history:

bash
docker run --rm -it caddy:2 caddy hash-password

Put the hash into /opt/chartdb/Caddyfile:

example
erd.example.com { basic_auth { team $2a$14$REPLACE_WITH_THE_HASH } reverse_proxy chartdb:80 }

Start it with docker compose up -d from /opt/chartdb, open https://erd.example.com, log in, paste the output of a Smart Query and reload the page. The diagram should come back, read from your browser's storage. Release 1.21.0 fixes a case where the analytics opt-out did not take effect, which is why we check the network panel rather than trust the variable. Updates are a tag change followed by docker compose pull && docker compose up -d; nothing on the server needs migrating.

For one person, skip the domain and the proxy. Give the chartdb service ports: ["127.0.0.1:8080:80"], which binds to loopback only, drop Caddy, and reach it through ssh -N -L 8080:127.0.0.1:8080 user@203.0.113.10 at http://localhost:8080. A small team that already shares a WireGuard tunnel can bind ChartDB to the tunnel address instead and keep it off the public internet altogether.

The AI key is readable by every user

ChartDB's optional AI features take OPENAI_API_KEY, or OPENAI_API_ENDPOINT plus LLM_MODEL_NAME for an inference server of your own; the README says to use one option, not both. How the image passes these on matters. Its nginx configuration answers requests for /config.js with a short script that sets window.env, the API key included, in clear, because the only component able to use the key is the front end running in each user's browser. Basic auth narrows the audience to your team; it does not hide the key from anyone on it. The request carrying your schema also goes from the user's browser straight to the provider, so the location of the VPS makes no difference to that traffic.

Our advice is to leave OPENAI_API_KEY unset on any instance more than one person can reach. If you want AI-assisted export without sending schemas to a US provider, run an OpenAI-compatible model server of your own in ALP1 and point OPENAI_API_ENDPOINT at it. It must be reachable from your users' browsers and accept cross-origin requests from the ChartDB address, and the dedicated server it needs costs many times what ChartDB does.

Where diagrams live, and how to keep them

ChartDB keeps diagrams in the browser's own storage (IndexedDB), which is scoped to an origin: scheme, host and port together. Move from http://203.0.113.10:8080 to https://erd.example.com and the diagram list starts empty, while the old diagrams sit in the browser under the old address. Clearing site data deletes them, and so does a colleague's laptop being reimaged. Export before you change the URL, before an upgrade and before a laptop goes back to IT.

The useful backup is therefore the export, not the server. Daily VPS backups (+20 %) would protect two text files you can keep in git instead. Commit the DBML or JSON export next to the migrations it describes, so the diagram changes in the same pull request as the schema. For an off-site copy, a 250 GB object storage bucket at $1.99 a month takes the files through the S3 API with rclone or aws-cli.

05/06

Cost.

ItemPrice
Cloud VPS Starter, monthly$6.99/mo
Cloud VPS Starter, yearly billing (≈ −25 %)≈ $5.25/mo, $62.99 a year
Daily backups (+20 %), not needed for ChartDB+$1.40/mo
Object storage 250 GB, optional, for exports$1.99/mo
ChartDB licence$0

The plan includes the 2 vCPU, 2 GB of RAM, 80 GB of NVMe, 10 TB of transfer and 1 Gbps port listed above; every plan and option is on the pricing page. We take payment in crypto only (Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins), with prices and balances in US dollars. Top-ups run from $25 to $5,000 and carry a bonus from $50 upwards: a $50 top-up becomes a $52.50 balance, which pays for seven months of Starter with $3.57 left over (theoretical). The unused paid part of a top-up is refundable within 14 days. Opening an account is no-KYC: an email address is enough.

06/06

Jurisdiction, limits and what is yours to handle.

Because the server never receives a schema, Swiss law bears on less here than with most applications. What sits on the VPS is the application code, Caddy's certificates and the nginx access log that Docker keeps, which records your users' IP addresses and is personal data under the revised Federal Act on Data Protection, in force since 1 September 2023. For that log you are the controller, not us. An EU team needs no additional transfer safeguards, since the European Commission confirmed on 15 January 2024 that Switzerland's adequacy decision remains in force. As of 31 October 2026 the US has CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That concerns what is stored on the server in ALP1; it does nothing for a schema your users' browsers send to a US AI provider. The wider argument is on our offshore hosting page.

Several things are yours rather than ours. ChartDB has no accounts, so authentication is whatever you put in front of it; an instance left open on a public address is an open editor carrying your analytics settings and, if you set one, your API key. Keeping the image current is also on you. If you modify ChartDB and let other people use the modified version over a network, section 13 of the AGPL-3.0 requires you to offer them its source, while running the unmodified image carries no such duty. A public copy styled to pass for the vendor's own service would be impersonation, and our acceptable-use policy applies to this VPS as to any other.

All our servers are in one facility, ALP1. For ChartDB that matters less than usual: an outage costs you the editor for its duration, not the diagrams, which are in your browsers.

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.

Six cloud VPS plans in ALP1 · transfer included on every plan

PlanvCPUMemoryNVMeTransferPortPriceDeploy
StandardSmall apps44 GB160 GB15 TB / month1 Gbps$12.99/moDeploy Standard
ProProduction68 GB320 GB20 TB / month1 Gbps$22.99/moDeploy Pro
PowerHeavy workloads1216 GB640 GB40 TB / month2 Gbps$42.99/moDeploy Power
UltraDatabases1632 GB1000 GB60 TB / month2 Gbps$65.99/moDeploy Ultra
SummitDense hosts3264 GB2000 GB100 TB / month5 Gbps$119.99/moDeploy Summit

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

Options and upgrades · prices per month

OptionWhat you getPrice
Daily backupsSnapshots of the whole VPS+20%
Extra IPv4Per address, up to 64+$2.00
Priority supportPer VPS+$10.00
Longer billingPay quarterly or yearly−10% / −25%
Dedicated serverWhen a VPS is no longer enough: 10 Gbps, unmetered trafficfrom $64.99

FAQ

Questions people ask first.

Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.

Still unsure?

Tickets go straight to the people who run ALP1.

Contact support
Does ChartDB need access to my database?

No. ChartDB generates a metadata query for your engine; you run it with your own client and paste the JSON result into the editor. The editor never connects to the database and never asks for credentials, so a read-only role, or a copy of the schema on staging, is all you need.

Can my team share diagrams on a self-hosted ChartDB?

Everyone can use the same instance, but each person sees only the diagrams stored in their own browser. Private shared diagrams with user accounts are a paid feature of the vendor's cloud and are not part of the self-hosted build. On your own server you share by exporting JSON or DBML and importing it, ideally through the same git repository as your migrations.

Why did my diagrams disappear when I moved ChartDB to a domain?

Browser storage is scoped to the origin, meaning scheme, host and port, so a new address opens a new, empty store. The diagrams are still in the browser under the old address. If you have already removed it, bring the old address back briefly, export from it, then import at the new one.

Can I use the AI export without sending my schema to OpenAI?

Yes, by pointing OPENAI_API_ENDPOINT and LLM_MODEL_NAME at an OpenAI-compatible server you run, for example on a dedicated server in ALP1. Users' browsers call that endpoint directly, so it must be reachable from them and allow cross-origin requests from your ChartDB address. For PostgreSQL to MySQL or SQL Server you may not need AI at all, since that export has been deterministic since 1.20.0.

Is the 10 TB of transfer on Starter enough?

For ChartDB, by more than three orders of magnitude for a team of twenty (theoretical, see the sizing section). The server sends the application files and nothing else, because diagrams never travel to it. VPS transfer is counted against the monthly allowance, so any other services on the same VPS are what would use it up.

Which ChartDB version should I run?

Pin a specific image tag rather than latest. As of 4 November 2026 the newest published image is 1.20.1, and the v1.21.0 source release of 1 November 2026 has no image yet. A pinned tag means an upgrade happens when you decide, after an export, rather than whenever someone runs docker compose pull.

ALP1·Swiss Alps

Your server in the Alps, ready when you are.

Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.