Deploy Heirloom
A private family tree app with sharing
Just deployed
/var/lib/postgresql/data
Heirloom
Just deployed
/data
Deploy and Host Heirloom on Railway
Heirloom is a private, self-hosted family tree app. Build your tree, attach photos and documents, cite sources, and share it with family members you invite. Everyone signs in with Google; nobody else can see it. It imports and exports GEDCOM, so your research moves in and out of other genealogy software.
About Hosting Heirloom
This template runs Heirloom's release image from GitHub Container Registry alongside a PostgreSQL database. Photos and other media are stored on a volume mounted at /data, so they survive redeploys. Before deploying, create a Google OAuth web client and enter its ID and secret, plus your own Google address, which becomes the first admin. After deploying, add your Railway domain's callback URL to the Google client, sign in, and invite family from the Members page.
To move to a newer release line, back up the database and the /data volume, then change the image tag in the service's Source settings (for example from 1.3 to 1.4) and redeploy.
Common Use Cases
- A family sharing one tree, each member signing in from their own device
- Moving a GEDCOM from desktop genealogy software to a private web app
- Keeping family photos, documents and sources together with the people they belong to
Dependencies for Heirloom Hosting
- PostgreSQL (included in this template)
- A Google OAuth web client for sign-in
Deployment Dependencies
- Self-hosting guide: https://github.com/Goombario/Heirloom/blob/main/SELF_HOSTING.md
- Creating the Google OAuth client: https://github.com/Goombario/Heirloom/blob/main/SELF_HOSTING.md#google-oauth-client
- Source code: https://github.com/Goombario/Heirloom
Implementation Details
- App: the
ghcr.io/goombario/heirloomrelease image, pinned to the current release line (such as1.3) so it takes that line's fixes without jumping to the next release on its own. It listens on port 3000 and runs as an unprivileged user. - Database: PostgreSQL, reached over Railway's private network through
DATABASE_URL. Heirloom creates and upgrades its own tables on start. - Media: photos and documents are stored on a volume mounted at
/data, so they survive redeploys. - Sign-in: Google OAuth only. Who may sign in is stored in the database;
AUTH_BOOTSTRAP_EMAILmakes the first admin, who invites everyone else from the Members page.
Why Deploy Heirloom on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Heirloom on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Heirloom
ghcr.io/goombario/heirloom:1.3AUTH_GOOGLE_ID
Client ID of your Google OAuth client. Create it in Google Cloud Console; see "Google OAuth client" in SELF_HOSTING.md. After deploying, add https://YOUR-DOMAIN/api/auth/callback/google as an authorized redirect URI, or sign-in will fail.
AUTH_GOOGLE_SECRET
Client secret of the same Google OAuth client.
AUTH_BOOTSTRAP_EMAIL
The Google address of the first admin. That account is made admin on its first sign-in.
