---
title: "Deploy Heirloom"
description: "A private family tree app with sharing"
category: "Other"
url: https://railway.com/deploy/heirloom
---

# Deploy Heirloom

A private family tree app with sharing

**[Deploy Heirloom on Railway](https://railway.com/template/heirloom)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/heirloom/manifest.json

- **Creator:** Heirloom
- **Category:** Other
- **Total deploys:** 2

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### Heirloom

- **Image:** ghcr.io/goombario/heirloom:1.3
- **Public domain:** Yes

## Documentation

# 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/heirloom` release image, pinned to the current release line (such as `1.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_EMAIL` makes 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.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/heirloom
