Railway

Deploy Calcom

Deploy and Host Calcom with Railway

Deploy Calcom

Just deployed

Deploy and Host Cal.com on Railway

Cal.com is an open-source scheduling infrastructure platform that lets individuals and teams manage bookings, appointments, and meetings. It serves as a self-hostable alternative to Calendly, giving you full control over your scheduling data and workflows.

About Hosting Cal.com

Cal.com is a Next.js application that requires a PostgreSQL database for storing users, bookings, event types, and availability. Hosting it involves configuring database connection variables, a NEXTAUTH_SECRET for session management, and a NEXTAUTH_URL pointing to your public deployment URL. Email (SMTP) configuration is needed for booking confirmation notifications. Optional integrations with Google Calendar, Zoom, Stripe, and other providers are enabled via additional environment variables post-deploy.

Common Use Cases

  • Allowing clients or teammates to self-schedule meetings based on real-time availability
  • Embedding a booking widget into a personal or business website
  • Managing multi-user team scheduling with round-robin or collective event types

Dependencies for Cal.com Hosting

  • PostgreSQL (stores users, bookings, event types, and availability data)
  • SMTP email provider (sends booking confirmations and notifications)

Deployment Dependencies

Implementation Details

Key environment variables required on Railway:

DATABASE_URL=${{Postgres.DATABASE_URL}}
NEXTAUTH_SECRET=
NEXTAUTH_URL=https://
CALENDSO_ENCRYPTION_KEY=
[email protected]
EMAIL_SERVER_HOST=
EMAIL_SERVER_PORT=587
EMAIL_SERVER_USER=
EMAIL_SERVER_PASSWORD=

Run database migrations on first deploy:

npx prisma migrate deploy

Why Deploy Cal.com 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 Cal.com 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
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
View Template
Prefect [Updated May ’26]
Prefect [May ’26] (ETL & Automation alternative to Airflow) Self Host

shinyduo