---
title: "Deploy Cal.com [Aug 26]"
description: "Calendly alternative: scheduling, bookings, appointments on Railway."
category: "Starters"
url: https://railway.com/deploy/calcom-postgres
---

# Deploy Cal.com [Aug 26]

Calendly alternative: scheduling, bookings, appointments on Railway.

**[Deploy Cal.com [Aug 26] on Railway](https://railway.com/template/calcom-postgres)**

- **Creator:** Marco Quintella's Projects
- **Category:** Starters

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### calcom

- **Source:** https://github.com/marco-quintella/calcom-postgres
- **Public domain:** Yes

## Documentation

# Deploy and Host Cal.com on Railway

## About Hosting

Railway provides a modern, streamlined platform for deploying web applications and databases. This template bundles **Cal.com** — the open-source Calendly alternative for scheduling, booking and appointments — running on the official Docker image with a managed Postgres database. One-click deploy, persistent data, zero lock-in.

## Why Deploy

Deploying this template gives you a production-ready scheduling platform in minutes:

- **Calendly alternative, self-hosted** — unlimited bookings, no per-seat pricing, full control of your data
- **Official image pinned** — `calcom/cal.com:v6.2.0` from Docker Hub (not a stale community build)
- **Migrations automated** — Prisma `migrate deploy` runs on every boot, so your schema is always current
- **Public URL auto-configured** — `NEXT_PUBLIC_WEBAPP_URL` and `NEXTAUTH_URL` are derived from your Railway domain at runtime
- **Postgres included** — the template provisions a managed Postgres database pre-wired to the app
- **Production-ready defaults** — healthcheck on `/`, restart policy, persistent storage

## Common Use Cases

- **SaaS and agencies** — embed scheduling in your product or offer booking as a service
- **Consultants and coaches** — 1:1 meetings, discovery calls, and paid appointments
- **Recruiting and HR** — interview slots, onboarding sessions, candidate scheduling
- **Teams and departments** — round-robin routing, collective availability, and event types

## Dependencies for

This template requires:

### Deployment Dependencies

- **Postgres** — a managed Railway Postgres database (the wizard wires `DATABASE_URL` automatically)
- **`PORT`** — fixed to `3000` (Railway routes traffic/healthchecks by this variable)
- **`NEXTAUTH_SECRET`** — random 32+ char secret for authentication (auto-generated in the wizard)
- **`CALENDSO_ENCRYPTION_KEY`** — random 32+ char secret for encrypting sensitive data (auto-generated in the wizard)
- **`DATABASE_DIRECT_URL`** — connection URL for migrations (same as `DATABASE_URL` for Railway Postgres)

## Getting Started

1. Click **Deploy on Railway**
2. In the deploy wizard, the Postgres service and variables are pre-configured
3. Wait ~3 minutes for the image pull and initial migrations
4. Open the generated domain — create your admin account and start scheduling

## Next Steps

- **Configure event types** — set up your first booking types from the dashboard
- **Connect your calendar** — integrate Google Calendar, Outlook, or CalDAV
- **Custom domain** — add one to your Railway service for a branded booking page
- **Add Redis (optional)** — set `REDIS_URL` for advanced caching and rate limiting

## License

AGPL-3.0 (Cal.com)

---



## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/calcom-postgres
