Deploy SFTPGo

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

Deploy SFTPGo

/var/lib/sftpgo

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

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.


Template Content

More templates in this category

View Template
RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set
S3-compatible object store, keys and public URL preset, volume kept

SuperSlowSloth
0
View Template
TimescaleDB
A PostgreSQL-based time-series database for analytics on Railway.

Rakit
1
View Template
NEW
Neo4j 2026.10 Community
Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

My Projects
0