I keep my portfolio tracker self-hosted because broker data shouldn't live on someone else's SaaS. Ghostfolio fits that — open-source, self-hostable, tracks holdings across accounts — but every time I tried to run it on Railway, my transaction history disappeared after the first redeploy.
The fix was boring but crucial: Ghostfolio writes to a Postgres database that needs a persistent volume mounted at a very specific path inside the container. Without that mount, Railway's ephemeral filesystem wipes your data on every push. I baked the volume configuration into a one-click template so the database survives redeploys automatically.
Concrete detail: the template spins up a single docker-compose stack with Postgres 15 and Redis, and the Railway volume attaches to /var/lib/postgresql/data inside the database container. One click, and you've got a private instance running.
Cost to the operator is modest — about $5-7 a month for compute and storage on Railway's hobby tier, which undercuts most portfolio-tracking subscriptions.
I packaged the whole thing as https://github.com/INAPP-Mobile/ghostfolio
Top comments (0)