Deploy GoToSocial

GoToSocial 0.22: lightweight ActivityPub server for the fediverse.

Deploy GoToSocial

/gotosocial/storage

Deploy and Host GoToSocial on Railway

GoToSocial is a lightweight ActivityPub server for the fediverse. It lets you run your own Mastodon-compatible account or small instance that follows and talks to people on Mastodon, Pixelfed, Akkoma and other servers. It has no built-in timeline UI; you use apps such as Phanpy, Elk, Tusky or Ivory.

About Hosting GoToSocial

This template runs the official superseriousbusiness/gotosocial:0.22.1 image as one service, with SQLite and media storage on a Railway volume. On first boot a seed step creates an admin account from the variables, confirms it and grants admin rights. Registration is closed, so the instance is yours until you open it. The server trusts Railway's proxy range, so rate limiting sees real client IPs. Important: the host name becomes part of every account address and can never change after you federate, so add your custom domain and set GTS_HOST before the first boot if you want one. It uses about 150 MB of memory.

Common Use Cases

  • A personal fediverse account on your own domain
  • A small, invite-only instance for friends or a team
  • An ActivityPub presence for a project or organisation

Dependencies for GoToSocial Hosting

  • superseriousbusiness/gotosocial:0.22.1 (official image)
  • A Railway volume at /gotosocial/storage for SQLite and media

Deployment Dependencies

Implementation Details

ServiceSourceNetworkingStorage
gotosocialsuperseriousbusiness/gotosocial:0.22.1public domain on 8080volume at /gotosocial/storage
VariableDefaultPurpose
GTS_HOST${{RAILWAY_PUBLIC_DOMAIN}}Instance host (never change after federating)
ADMIN_USERNAME / ADMIN_EMAILadmin / admin@example.comAdmin created on first boot
ADMIN_PASSWORDgeneratedIts password
GTS_ACCOUNTS_REGISTRATION_OPENfalseCloses public sign-up
GTS_TRUSTED_PROXIES100.64.0.0/10Railway's proxy range
RAILWAY_RUN_UID0Runs as root so the volume is writable

Notes:

  • Sign in from any Mastodon client with your instance URL, the admin email and password.
  • The settings panel is at /settings.

This is a community-maintained deployment package and does not imply affiliation with or endorsement by the GoToSocial project.

Why Deploy GoToSocial 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 GoToSocial 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
Pixelfed
Explore + Share beautiful photos and videos on the Fediverse

Evan Boehs
30
View Template
Hexo
Hexo — fast static blog framework with admin editor and S3 media storage

INAPP
1
View Template
Bluesky PDS (Atproto Spaces Alpha)
"The Atproto Spaces Alpha" version of Bluesky PDS.

mkizka
2