---
title: "Deploy SFTPGo"
description: "SFTP, web and REST file server with users, shares and cloud storage"
category: "Storage"
url: https://railway.com/deploy/sftpgo-2
---

# Deploy SFTPGo

SFTP, web and REST file server with users, shares and cloud storage

**[Deploy SFTPGo on Railway](https://railway.com/template/sftpgo-2)**

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

- **Creator:** Agaz Self-Host
- **Category:** Storage
- **Total deploys:** 2

## Template content

### SFTPGo https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/sftpgo.png

- **Source:** https://github.com/aalfath/sftpgo-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host SFTPGo on Railway

SFTPGo is an open-source file transfer server. It serves SFTP and SCP, plus a web admin panel, a web client where users upload, download and share files, and a REST API. Each user can store files on the local disk, S3-compatible storage, Google Cloud Storage, Azure Blob or another SFTP server.

## About Hosting SFTPGo

This template runs SFTPGo 2.7.6 as one service, built from a public GitHub repo that pins the official `drakkan/sftpgo` image by version and digest. A volume at `/var/lib/sftpgo` holds the SQLite database, user home directories, backups and the SSH host keys, so users, files and the server fingerprint survive redeploys. The web panel and REST API are served on the Railway domain (health check `/healthz`), and SFTP on port 2022 through a TCP proxy. The first admin's password and the session signing key are generated at deploy, so you answer no prompts. FTP/S and WebDAV are off, because Railway gives a service one TCP port and one HTTP domain.

## Common Use Cases

* Give clients or partners an SFTP drop box with their own login and folder
* Receive scheduled file deliveries from systems that only speak SFTP
* Put an SFTP and web upload front end on an S3, Google Cloud Storage or Azure Blob bucket

## Dependencies for SFTPGo Hosting

* A Railway volume for the database, files and host keys (included)
* An SFTP client (OpenSSH `sftp`, FileZilla, WinSCP) or a web browser

### Deployment Dependencies

* [SFTPGo documentation](https://docs.sftpgo.com/2.7/)
* [SFTPGo configuration reference](https://docs.sftpgo.com/2.7/config-file/)
* [SFTPGo 2.7.6 release](https://github.com/drakkan/sftpgo/releases/tag/v2.7.6)
* [Template repo](https://github.com/aalfath/sftpgo-railway-template)

### Implementation Details

After the deploy:

1. Open `https://YOUR-DOMAIN/web/admin` and sign in as `admin` with the password in the service's `SFTPGO_DEFAULT_ADMIN_PASSWORD` variable. Changing that variable later has no effect: change the password in the web admin.
2. Create a user under **Users**. Keep "Local disk" storage to store files on the volume, or choose a cloud bucket.
3. Find the SFTP address in the service's Networking settings (TCP proxy) and connect with `sftp -P YOUR-PROXY-PORT USERNAME@YOUR-PROXY-DOMAIN`. Users can also sign in at `https://YOUR-DOMAIN/web/client`.

Optional settings (email, single sign-on, branding) are `SFTPGO_<section>__` variables, listed in the configuration reference. Updates come as "update available" notices from Railway when the repo moves to a new SFTPGo release; read its CHANGELOG.md and make a backup (**Maintenance → Backup**) before you apply one.

## Why Deploy SFTPGo 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 SFTPGo 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.

</section>

## 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.
- [Neo4j 2026.10 Community](https://railway.com/deploy/neo4j-202610-community) — Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

Open this page in a browser: https://railway.com/deploy/sftpgo-2
