Deploy Sharry

Self-hosted file sharing by link, with guest uploads. Postgres, no prompts.

Deploy Sharry

/var/lib/postgresql/data

Deploy and Host Sharry on Railway

Sharry is an open-source, self-hosted file-sharing server. Signed-in users upload files and share them by link, with an optional password, expiry date and download limit. Alias pages let anyone send files to you without an account. It has a web UI, resumable uploads and a REST API.

About Hosting Sharry

This template runs Sharry v1.17.0 from the official image, pinned by version and digest, plus a Railway PostgreSQL database. Accounts, shares and file contents all live in Postgres, so a single volume holds everything and the stack fits Railway's Free plan. The deploy needs no input: it generates the admin password and the token-signing secret, closes open sign-up, waits for the database and sets its public URL. After deploy, open the public domain and log in as admin with the SHARRY_ADMIN_PASSWORD value from the Sharry service's Variables tab. Then add users under Accounts, or switch sign-up to invite-only.

Common Use Cases

  • Send large files to clients or colleagues by link, with a password and an expiry date
  • Collect files from people without an account through an alias upload page
  • Replace a public file-transfer service with one you control

Dependencies for Sharry Hosting

  • Sharry (web UI and REST API), built from the template's GitHub repo
  • PostgreSQL (accounts, shares and file contents, on one volume)

Deployment Dependencies

Implementation Details

Services:

  • Sharry: the web app on port 9090 with a public domain and a health check at /api/v2/open/info/version.
  • Postgres: Railway's PostgreSQL, reached over the private network.

Variables (nothing to fill in):

  • SHARRY_ADMIN_PASSWORD: generated password of the admin login.
  • SHARRY_SERVER_SECRET: generated secret that signs login tokens.

The start script refuses to start with a weak password or secret, keeps header-based proxy login off, and sizes the Java heap from the service's memory limit. It runs at 0.5 GB RAM (about 175 MB idle, 230 MB during a 300 MB upload). The old single-request upload API buffers whole files in memory, so at 0.5 GB send large files through the web UI or its resumable upload. Any other Sharry setting can be added as a SHARRY_* variable, for example SHARRY_BACKEND_SIGNUP_MODE=invite, SHARRY_BACKEND_SHARE_MAX_SIZE=5G or the SHARRY_BACKEND_MAIL_* SMTP settings.

Updates: the Sharry service builds from the template repo. When a new Sharry version is pinned there, Railway shows an "update available" notice in your project. Read the repo's CHANGELOG.md before you apply it. Sharry migrates its database on start.

Why Deploy Sharry 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 Sharry 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

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Wiki-Go
Flat-file Markdown wiki in Go: no database, generated admin login

Agaz Self-Host
0