Self-hosted app·Finance, billing and payments
Ghostfolio hosting on a Swiss VPS.
Ghostfolio hosting in the Swiss Alps: Docker Compose on a 2 vCPU / 2 GB VPS for $6.99/month, with TLS, pinned versions and off-site Postgres backups.
- Ghostfolio
- PostgreSQL
- Redis
- Docker
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 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: $62.99 a year, about 25% less
- 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. Ghostfolio runs on our smallest Cloud VPS, Cloud VPS Starter (2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB of monthly transfer, $6.99 a month), in our ALP1 site in the Swiss Alps. You use the project's own Docker Compose file, which starts Ghostfolio next to PostgreSQL and Redis, and you put a TLS proxy in front of it.
The detail that matters most is the first ten minutes. On a fresh instance the first account created becomes the administrator, and the upstream compose file publishes port 3333 on every interface of the server. Bind the port to localhost, register your own account before anyone else can reach the page, then switch off sign-ups. Everything else on this page is routine.
02/06
What Ghostfolio is and who runs it.
Ghostfolio is an open-source portfolio tracker for stocks, ETFs, cryptocurrencies and cash spread over several brokers and exchanges. It does not connect to your bank or broker. You enter transactions or import them, and Ghostfolio fetches market prices to value the holdings, calculate performance including dividends, and draw allocation charts. CHF works as a base currency, which matters if most of what you hold trades on SIX.
The project was started in 2021 by Thomas Kaul, a developer based in Switzerland, and is maintained on GitHub with outside contributors under the AGPL-3.0 licence. The maintainers also sell Ghostfolio Premium, a hosted version whose revenue pays for their infrastructure, professional market data and further development. Under the hood it is a TypeScript monorepo: a NestJS backend on PostgreSQL through Prisma, Redis as a cache, and an Angular frontend that installs on a phone as a progressive web app. Official container images exist for amd64, arm64 and armv7.
It moves quickly. Between release 3.67.1 on 5 September 2026 and 3.92.0 on 24 October 2026 the project shipped 25 minor releases, and each new container applies any pending database migrations when it starts. That pace is the main operational fact about Ghostfolio, and it is why we pin versions below instead of running latest.
Self-hosting keeps your transactions and account structure in a database you control. It does not make price lookups private. Ghostfolio asks Yahoo Finance and CoinGecko for quotes on every symbol you hold, from your server's IP address, so those providers learn which tickers that address cares about, though not how many units you own. If that bothers you, an asset can use the MANUAL data source and you maintain its price yourself; you trade automatic valuation for silence.
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 upstream compose file defines three containers, and only one of them holds data worth keeping.
| Container | Image in upstream compose | Persistent data | Role |
|---|---|---|---|
ghostfolio | ghostfolio/ghostfolio:latest | none | Node.js app and API on port 3333, health check at /api/v1/health |
gf-postgres | postgres:15-alpine | named volume postgres | transactions, accounts, market-data history |
gf-redis | redis:alpine | none | cache, password-protected |
The project publishes no minimum hardware specification, so treat figures you read elsewhere as someone's estimate. The 80 GB disk is far beyond what one household's portfolio needs; the database grows mostly with the daily price history of each symbol you track, not with the number of transactions you record.
Two sizing judgements hold without a benchmark. Do not build Ghostfolio from source on a 2 GB machine: the docker-compose.build.yml route compiles the Angular and NestJS apps, which is a very different memory load from running the prebuilt image, so pull the official image instead.
Traffic is a non-issue for a personal dashboard, but know the model: VPS plans include a monthly transfer allowance, 10 TB on Starter, rather than unmetered traffic. Inbound you need SSH plus ports 80 and 443 for the proxy. Outbound, Ghostfolio needs HTTPS to its data providers.
04/06
How to deploy it with us.
Order Cloud VPS Starter with Debian 13 from the deploy link, add your SSH key, and point a DNS record such as folio.example.com at the server's IPv4 address. Everything below runs as root.
- 01
Install Docker Engine
We use Docker's own Debian repository, which provides the Compose plugin:
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 $(. /etc/os-release && echo $VERSION_CODENAME) stable" \ > /etc/apt/sources.list.d/docker.list apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin - 02
Fetch the upstream files
The compose file reads its settings from
../.env, so keep the upstream directory layout:mkdir -p /opt/ghostfolio/docker && cd /opt/ghostfolio curl -fsSL -o docker/docker-compose.yml https://raw.githubusercontent.com/ghostfolio/ghostfolio/main/docker/docker-compose.yml curl -fsSL -o .env https://raw.githubusercontent.com/ghostfolio/ghostfolio/main/.env.example chmod 600 .env - 03
Generate the secrets
.env.examplecontains four placeholders. Fill them with hex strings: the PostgreSQL password is pasted intoDATABASE_URL, and a password containing@,/or:produces a connection string that fails in confusing ways.for k in REDIS_PASSWORD POSTGRES_PASSWORD ACCESS_TOKEN_SALT JWT_SECRET_KEY; do sed -i "s|^$k=.*|$k=$(openssl rand -hex 32)|" .env done cat >> .env <<'EOF' ROOT_URL=https://folio.example.com TRUST_PROXY=1 ENABLE_FEATURE_SECURITY_HEADERS=true EOFTRUST_PROXY=1lets Ghostfolio see the real client address for rate limiting when it sits behind one proxy. The security-headers flag is marked experimental upstream; remove it if a page misbehaves after an upgrade. - 04
Pin the version and close port 3333
Edit two lines in
docker/docker-compose.yml:image: docker.io/ghostfolio/ghostfolio:3.92.0 ports: - 127.0.0.1:3333:3333The port change is the one people skip and regret. Confirm the tag exists on Docker Hub before you pull.
- 05
Put Caddy in front for TLS
Ghostfolio leaves
Strict-Transport-Securityto the reverse proxy, so set it there:apt install -y caddy cat > /etc/caddy/Caddyfile <<'EOF' folio.example.com { reverse_proxy 127.0.0.1:3333 header Strict-Transport-Security "max-age=31536000" } EOF systemctl reload caddy - 06
Start it, then claim the instance
docker compose -f docker/docker-compose.yml up -d docker compose -f docker/docker-compose.yml psWhen all three containers report healthy, open
https://folio.example.comand choose Get Started. That first account receives theADMINrole. Ghostfolio signs you in with a security token rather than a password, so store the token in your password manager before you close the dialog. Then open the admin control panel and turn user sign-up off; if family members need accounts, let them register first and close it afterwards. - 07
Upgrades and backups
To upgrade, take a database dump, change the image tag, then run
docker compose -f docker/docker-compose.yml pullandup -d; migrations run on start. Leavepostgres:15-alpineas it is. Moving PostgreSQL to a new major version is a dump-and-restore job, not a tag edit, and doing it by accident leaves a database the new server refuses to open.Back up the database rather than the volume directory, and keep a copy off the server. A nightly dump pushed with restic to an S3-compatible object storage bucket does the job, and restic encrypts the repository before anything leaves the VPS. With
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYandRESTIC_PASSWORDset, a cron job runs:docker exec gf-postgres sh -c 'pg_dump -U "$POSTGRES_USER" -d "$POSTGRES_DB" -Fc' \ > /var/backups/ghostfolio-$(date +%F).dump restic -r s3:https://<endpoint>/<bucket> backup /var/backupsUse the bucket through restic or the S3 API, never as a mount underneath PostgreSQL. Ghostfolio's own JSON export of activities makes a useful second copy, because it imports into any other Ghostfolio instance, Premium included. Redis holds only cache, so there is nothing in it to back up.
05/06
Cost.
| Item | Per month |
|---|---|
| Cloud VPS Starter: 2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB transfer, 1 Gbps | $6.99 |
| Daily VPS backups (+20 %) | +$1.40, so $8.39 in total (theoretical) |
| Object storage, 250 GB bucket for the encrypted dumps | $1.99 |
| Starter with both options | $10.38 (theoretical) |
Yearly billing takes roughly 25 % off, which would put the VPS alone at about $5.25 a month, or $62.99 a year. That is a theoretical calculation; check the exact amount at checkout, and the full list on our pricing page.
The plan comes with full root, a public IPv4 address (further addresses are $2 a month), NVMe storage, the transfer allowance above, and outbound port 25, which Ghostfolio does not use. You do not need both backup layers. The daily VPS backup is a quick rollback after a bad upgrade; the bucket is what survives losing the server. If you keep one, keep the bucket.
Payment is in cryptocurrency (Monero, Bitcoin, Tether, Ethereum, Litecoin and other coins), with prices and balances in US dollars. Top-ups run from $25 to $5,000, and from $100 we add 10 %, so a $100 top-up becomes $110 of credit, roughly fifteen months of the bare Starter plan (theoretical). The unused paid part of a top-up is refundable within 14 days. This is no-KYC hosting: an email address is enough to open the account.
The honest comparison is with Ghostfolio Premium, not with other hosts. Premium includes the project's own GHOSTFOLIO market-data source, which the README marks as a Premium feature, and the subscription pays the people who write the software. Self-host when the location and control of the database are the point. If you mainly want the dashboard, Premium is less work.
06/06
Limits and acceptable use.
What runs inside the VPS is yours to operate. We run the hypervisor and the network in ALP1; you patch Debian, update the images, guard the .env file and decide who may sign up. Our support cannot recover a lost Ghostfolio security token, because it is created and stored by your instance, not by our panel. That is one more reason to keep the dump.
If you run Ghostfolio for people other than yourself, obligations come with it. The AGPL requires that people using a modified version over a network can obtain its source, so publish your changes if you make any. Their portfolios are also personal data: the revised Swiss Federal Act on Data Protection, in force since 1 September 2023, makes you answerable for securing that data and for informing them about the processing. For users in the EU, the European Commission confirmed on 15 January 2024 that Switzerland still provides an adequate level of protection, so their data can be hosted here without additional transfer safeguards.
Hosting a portfolio tracker does not change the general rules. A page imitating ghostfol.io, a broker or a bank login is not acceptable use, whatever it is labelled. If you build a commercial service on top that provides crypto-asset services, Swiss sanctions apply to it: since 26 February 2026 the Russia ordinance prohibits providing such services to Russian nationals, to people residing in Russia and to entities established there, subject to the exceptions in the ordinance.
On jurisdiction: the data sits on our hardware in Switzerland, operated by Hosta AG under Swiss law. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland, and we act on decisions of competent Swiss authorities. That describes a procedure, not immunity from it; our offshore hosting page sets out what it covers and what it does not.
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 |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, 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 |
| 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 |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy 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
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can Cloud VPS Starter run Ghostfolio alongside other apps?
One or two light services without a database of their own, yes. Once a second PostgreSQL instance arrives, Cloud VPS Standard at $12.99 a month is the sensible floor.
Do I need API keys for market data?
No. Yahoo Finance and CoinGecko work without keys; a CoinGecko Demo key is optional and goes into API_KEY_COINGECKO_DEMO. Shares listed on SIX use Yahoo symbols ending in .SW, for example NESN.SW.
Is my portfolio encrypted on disk?
Ghostfolio adds no encryption layer of its own. PostgreSQL stores your data as ordinary files on the VPS disk, readable by anyone with root on the server, and, as on any virtual server, not hidden from the hypervisor that runs it. Restic encrypts the off-site backups before upload. Restrict root to SSH keys and keep the .env file at mode 600.
How do I move an existing portfolio over?
Export your activities as JSON from the current instance, whether self-hosted or Premium, and import the file into the new one. The same format is available through the /api/v1/export and /api/v1/import endpoints if you prefer to script it.
Does it work on a phone?
Ghostfolio is a progressive web app: open your domain in the phone's browser and add it to the home screen. Installation requires HTTPS, which the Caddy step provides.
How do I pay, and how do I reach you?
Payment is crypto-only and an email address is enough to sign up; billing details are in our FAQ. For anything about your server, open a support ticket from the client panel.
Sources
Every fact on this page, with its source
Checked 4 Nov 2026 unless noted.
Swiss law and authorities
- Revised Swiss Federal Act on Data Protection in force since 1 September 2023Fedlex, RS 235.1
- Swiss sanctions against Russia, prohibition on crypto-asset services (SR 946.231.176.72, art. 20(2)), in force since 26 February 2026SECO press release of 25 February 2026
EU and other countries
- European Commission review of 15 January 2024 confirming Switzerland's adequacy (decision 2000/518/EC remains in force)European Commission, adequacy decisions
- CLOUD Act executive agreements listed only with the United Kingdom and Australiajustice.gov · verified 31 Oct 2026
Industry, providers and software
- Ghostfolio README: technology stack, AGPL-3.0 licence, © 2021 start, image architectures, environment variables (TRUST_PROXY, ENABLE_FEATURE_SECURITY_HEADERS, HSTS left to the proxy), Docker Compose setup, first user receives ADMIN, upgrade procedure and automatic migrations, health endpoint, data sources (MANUAL; GHOSTFOLIO with Premium), import/export API, PWAgithub.com/ghostfolio/ghostfolio
- Upstream Compose file (images ghostfolio/ghostfolio:latest, postgres:15-alpine, redis:alpine; port 3333:3333; volume postgres)docker/docker-compose.yml
- Upstream environment template.env.example
- Release 3.92.0, published 24 October 2026, latest at time of checkingGitHub release 3.92.0
- Release history including 3.67.1, published 5 September 2026GitHub releases
Other references
- Project initiated by Thomas Kaul, based in SwitzerlandProject announcement
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.
