Deploy & Host Gatus | Railway

Deploy and Host

Gatus is a beautiful, lightweight uptime monitoring dashboard. Deploy it on Railway in minutes to monitor your endpoints and get instant alerts when something goes down.

About Hosting

Gatus runs as a single Docker container on port 8080. Railway provides compute, TLS at the edge, and a public URL. All monitoring data (config, status history, metrics) is stored at /data — add a Railway Volume there to persist everything across restarts.

Why Deploy

Common Use Cases

Dependencies for Gatus

Deployment Dependencies

Configuration

Gatus is configured via a YAML config file at /data/config.yaml. On first launch, Gatus auto-generates a default config with sensible defaults. You can edit the config through the web UI or by editing the file directly.

Key Options

Option Description
port HTTP listen port (default: 8080, matches Railway PORT)
endpoints List of endpoints to monitor
alerts Notification channel configurations
storage SQLite database path (default: /data/gatus.db)
web Web UI configuration

Example Config

endpoints:
  - name: Google
    url: https://www.google.com
    interval: 5m
    conditions:
      - "[STATUS] == 200"
      - "[RESPONSE_TIME] < 1000"
  - name: API
    url: https://api.example.com/health
    interval: 30s
    conditions:
      - "[STATUS] == 200"

FAQ

How do I add endpoints?

Open the Gatus web UI and navigate to the Configuration page. You can add, edit, and delete endpoints there. Alternatively, edit /data/config.yaml directly and restart the service.

How do I set up alerts?

In the config file, add an alerts section with your notification channel. For example, for Slack:

alerts:
  - type: slack
    webhook-url: https://hooks.slack.com/services/...

Where is my data stored?

All data (config, SQLite database, status history) is stored at /data. The Railway Volume mount ensures data persists across restarts.

What happens if the volume isn't mounted?

Without a volume, all monitoring data and configuration will be lost on every restart. The volume is required for proper operation.

How do I monitor my own Railway deployment?

Gatus can monitor any HTTP endpoint, including your Railway apps. Add your app's *.up.railway.app URL as an endpoint with a health condition.

Is there a public API?

Yes. Gatus exposes a REST API at /api/v1/ with endpoints for checking status, managing configs, and more. Full documentation is available in the web UI.