---
title: "Deploy Client Gallery"
description: "Self-hosted photography portfolio with private client galleries"
category: "CMS"
url: https://railway.com/deploy/client-gallery
---

# Deploy Client Gallery

Self-hosted photography portfolio with private client galleries

**[Deploy Client Gallery on Railway](https://railway.com/template/client-gallery)**

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

- **Creator:** Henry Beedham's Projects
- **Category:** CMS
- **Total deploys:** 2

## Template content

### henrybeedham/portfolio-gallery:latest https://github.com/henrybeedham/portfolio-gallery/blob/main/assets/railway-icon.png?raw=true

- **Image:** ghcr.io/henrybeedham/portfolio-gallery:latest
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host Client Gallery on Railway

Client Gallery is a self-hosted website for photographers. It combines a public portfolio with private client galleries that can have a password, an expiry date and full-resolution downloads. Its admin area also handles jobs, PDF invoices and analytics. It's built with SvelteKit and SQLite and ships as a single Docker image.

## About Hosting Client Gallery

Client Gallery runs as one container with everything on a persistent volume mounted at `/data`: the SQLite database, original photos and videos, generated thumbnails, themes and automatic database backups. This template deploys the published image, attaches the volume, generates an admin password and session secret, and gives the site an HTTPS address. After deploying, copy `ADMIN_PASSWORD` from the service's Variables tab and sign in at `/admin/login` as `admin`. Updating is a redeploy, which pulls the latest image; the database is backed up before any migration runs. Grow the volume as your photo library grows.

## Common Use Cases

- Delivering finished shoots to clients in private, password-protected galleries with full-resolution and ZIP downloads
- Running a public photography portfolio on your own domain, with themes and a featured album
- Managing jobs, PDF invoices and earnings in one place, with a private calendar feed and phone notifications

## Dependencies for Client Gallery Hosting

- A Railway volume mounted at `/data` (the database and every photo live here)
- The published Docker image, `ghcr.io/henrybeedham/portfolio-gallery:latest`, which includes ffmpeg for video posters and previews

### Implementation Details

The app keeps its data in SQLite on the volume and holds rate limits and background tasks in memory, so run it as a single replica. To use your own domain, add it under Settings → Networking; nothing else needs changing.

| Variable         | Purpose                                                       |
| ---------------- | ------------------------------------------------------------- |
| `ADMIN_PASSWORD` | Admin login password (generated)                              |
| `SESSION_SECRET` | Signs login cookies (generated)                               |
| `TRUST_PROXY`    | `true`, so the app reads Railway's forwarded address and IPs  |

Photos and videos upload in 8 MB pieces, so large files get through Railway's proxy, and interrupted uploads and downloads resume.

## Why Deploy Client Gallery 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 Client Gallery 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

- [Libredesk - Complete Setup](https://railway.com/deploy/libredesk-complete-setup) — Complete self-hosted omnichannel customer support desk.
- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Paperless-ngx — document management with OCR and full-text search
- [Instatic CMS - Postgres](https://railway.com/deploy/instatic-cms-postgres) — Design, build and manage powerful static sites from state-of-the-art CMS

Open this page in a browser: https://railway.com/deploy/client-gallery
