---
title: "Deploy Sharely"
description: "Self-hosted file sharing with ShareX, API, and MongoDB."
category: "Storage"
url: https://railway.com/deploy/sharely-clone
---

# Deploy Sharely

Self-hosted file sharing with ShareX, API, and MongoDB.

**[Deploy Sharely on Railway](https://railway.com/template/sharely-clone)**

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

- **Creator:** INAPP
- **Category:** Storage

## Template content

### sharely

- **Source:** https://github.com/mc9max/sharely
- **Public domain:** Yes

### mongo

- **Source:** mc9max/sharely

## Documentation

# Deploy and Host Sharely with Railway

A self-hosted file sharing platform with a clean web interface, ShareX integration, and API access. Upload screenshots, files, and media — then instantly share them via short links.

[![Deploy to Railway](https://railway.app/button.svg)](https://railway.com/deploy/sharely-clone)

## About Hosting

Sharely is a Node.js and MongoDB application that provides a modern web interface for file uploads, gallery viewing, and shareable links. It supports chunked uploads up to 2 GB, automatic thumbnail generation for video and PDF files, and social media embed optimization with Open Graph metadata.

## Why Deploy

Self-hosting Sharely gives you full control over your files and sharing preferences. Whether you want a private file hub, a public gallery, or a ShareX upload target for screenshots, Sharely handles it all with minimal infrastructure — just Node.js and MongoDB.

## Common Use Cases

- **Screenshot hosting** — Pair with ShareX for instant screenshot uploads and short links
- **File sharing** — Share files via password-protected links with expiry dates
- **Media galleries** — Organize photos, videos, and documents in searchable collections
- **API integration** — Use the Bearer token API to upload files programmatically from scripts and apps
- **Team file hub** — Host a central upload point for team assets and media

## Dependencies for

- **MongoDB** — Stores user data, file metadata, and session information (auto-wired companion)
- **Node.js** — Runtime for the Express server and React client (bundled in Docker image)
- **Persistent volume** — Required for uploaded files and auto-generated thumbnails (auto-attached)

### Deployment Dependencies

- **sharely** — the Sharely web app (Node.js/Express + React client), served on port 3000 with a persistent volume for uploads
- **mongo** — MongoDB 7 companion service, auto-wired via the private network; creates the least-privilege app user on first start


## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.

Open this page in a browser: https://railway.com/deploy/sharely-clone
