Deploy Client Gallery
Self-hosted photography portfolio with private client galleries
henrybeedham/portfolio-gallery:latest
Just deployed
/data
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.
Template Content
henrybeedham/portfolio-gallery:latest
ghcr.io/henrybeedham/portfolio-gallery:latest