Deploy Appwrite
Open-source Firebase alternative: auth, databases, storage, realtime
Appwrite Console
Just deployed
Appwrite Maintenance
Just deployed
Just deployed
Redis
Just deployed
/data
AutoGravity
Just deployed
Appwrite Interval
Just deployed
Appwrite API
Just deployed
Just deployed
Appwrite Worker
Just deployed
PostgreSQL
Just deployed
/var/lib/postgresql
ClickHouse
Just deployed
/var/lib/clickhouse
Just deployed
Appwrite Scheduler
Just deployed
Appwrite Realtime
Just deployed
Bucket
Bucket
Just deployed
Deploy and Host Appwrite on Railway
Appwrite is an open-source backend platform, often used as a self-hosted Firebase alternative. It gives web and mobile apps user authentication, databases, file storage, messaging and realtime events through one REST, GraphQL and WebSocket API, plus a web console to manage projects, users, data and API keys.
About Hosting Appwrite
Appwrite 2.7.3 is not one container. Upstream ships an API, a realtime server, background workers, a scheduler, maintenance tasks, a web console, PostgreSQL, ClickHouse, Redis, file storage and helper services behind a reverse proxy, and they must share secrets and storage and start in the right order. This template wires 14 services and a Railway Bucket over Railway's private network, with generated secrets, volumes for PostgreSQL and ClickHouse, and health checks. Nothing is asked at deploy. Open the public URL and sign up right away: the first account becomes the console owner and further console sign-ups are refused.
Common Use Cases
- Backend for web and mobile apps: sign-in, OAuth, teams, databases and file uploads
- Self-hosted Firebase or Supabase alternative under your own Railway account
- Realtime apps such as chat, dashboards and live collaboration through the realtime API
Dependencies for Appwrite Hosting
- PostgreSQL 18 (Appwrite's image with pgvector and PostGIS) and ClickHouse, each on a volume
- Redis and a Railway Bucket (S3-compatible file storage)
Deployment Dependencies
- Appwrite 2.7.3 (
appwrite/appwrite, pinned by digest): https://github.com/appwrite/appwrite - Template repo, built by every service except Redis: https://github.com/aalfath/appwrite-railway-template
- Appwrite self-hosting docs: https://appwrite.io/docs/advanced/self-hosting
Implementation Details
Services in this template:
- Appwrite (public): Caddy router. Sends
/v1/realtimeto Realtime,/v1to the API and everything else to the Console. - Appwrite API: REST and GraphQL API; creates and migrates the database schema when it starts.
- Appwrite Realtime: WebSocket server for realtime subscriptions.
- Appwrite Worker: all background queues (database jobs, mail, messaging, webhooks, audits, usage, deletes, migrations).
- Appwrite Scheduler, Appwrite Maintenance, Appwrite Interval: scheduled jobs, daily cleanup and periodic tasks.
- Appwrite Console: the web console.
- PostgreSQL, ClickHouse, Redis, Bucket: data, usage statistics, cache and queues, uploaded files.
- Geo, ExifTool, AutoGravity: IP to country lookups, image metadata stripping, focal points for image previews.
After deploy: sign up at the public URL, create a project, add a Web platform for your app's hostname and point your SDK at https://YOUR-DOMAIN/v1. Email (verification, password recovery, invites) is off until you set _APP_SMTP_HOST, _APP_SMTP_PORT, _APP_SMTP_USERNAME, _APP_SMTP_PASSWORD and _APP_SYSTEM_EMAIL_ADDRESS on Appwrite API and Appwrite Worker. If you add a custom domain, update _APP_DOMAIN and _APP_CONSOLE_URL on the six Appwrite services. Never change _APP_OPENSSL_KEY_V1 after the first deploy.
Not included: Functions and Sites builds and executions, because Appwrite's executor needs the host's Docker socket, which Railway does not offer. MQTT messaging and the optional AI and screenshot services are left out too.
Updates: every image is pinned by version and digest in the template repo. A new Appwrite version arrives as a commit there, and Railway shows an "update available" notice on your project, so you choose when to apply it. Read the repo's CHANGELOG first.
Why Deploy Appwrite 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 Appwrite 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
Appwrite Console
aalfath/appwrite-railway-templateAppwrite Maintenance
aalfath/appwrite-railway-templateRedis
redis:8.2AutoGravity
aalfath/appwrite-railway-templateAppwrite Interval
aalfath/appwrite-railway-templateAppwrite API
aalfath/appwrite-railway-templateAppwrite Worker
aalfath/appwrite-railway-templatePostgreSQL
aalfath/appwrite-railway-templateClickHouse
aalfath/appwrite-railway-templateAppwrite Scheduler
aalfath/appwrite-railway-templateAppwrite Realtime
aalfath/appwrite-railway-templateBucket
Bucket
