Deploy & Host Gotify | Railway

Deploy and Host Gotify on Railway

Gotify is a simple, self-hosted server for sending and receiving push notifications. Applications, scripts and CI jobs post messages over a REST API using an app token, and clients receive them in real time over WebSocket, through the web UI, the Android app or any tool that speaks its API.

About Hosting Gotify

This template deploys Gotify v3.1.1, the first major release with environment-only configuration, as a single service with a SQLite database on a Railway volume at /app/data. The admin account is admin with a password generated at deploy time, registration is disabled, and session cookies are marked secure because Railway serves it over HTTPS. Gotify is light, so the Hobby plan is enough and the volume only grows with stored messages and images. Log in, create an application to get a sending token, then post messages from anywhere with curl or any HTTP client.

Common Use Cases

Dependencies for Gotify Hosting

Deployment Dependencies

Implementation Details

Service Image Networking Storage
gotify gotify/server:3.1.1 public domain on 80; private IPv4/IPv6 volume at /app/data

Send a message with an application token created in the web UI:

curl "https:///message" -H "X-Gotify-Key: " \
  -F "title=Deploy finished" -F "message=main is live" -F "priority=5"
Variable Default Purpose
GOTIFY_DEFAULTUSER_NAME / GOTIFY_DEFAULTUSER_PASS admin / generated First admin account
GOTIFY_REGISTRATION false Keep public sign-up closed
GOTIFY_SERVER_SECURECOOKIE true Secure session cookies behind HTTPS

Notes:

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

Why Deploy Gotify 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 Gotify 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.