What is Cal.com?
Cal.com is open-source scheduling done properly: personal and team booking pages, fine-grained availability, round-robin and collective events, reminders and workflows, routing forms, and two-way sync with Google, Office 365, and CalDAV calendars. It is the self-hosted answer to Calendly.
The app is effectively stateless - every booking, event type, and connection lives in a managed Postgres - so this template is just the app plus the database. PORT moves it onto Lyngbak’s public port with no wrapper, and migrations run on start.
The reason to self-host is the same as always: scheduling tools meter features per seat, which scales with your team rather than your usage. Cal.com is one deployment with no per-seat fee, on your own domain, with the booking data in a Postgres you control.
What you get
- Personal and team booking pages with availability rules
- Round-robin, collective, and managed event types
- Workflows, reminders, and routing forms
- Two-way calendar sync (Google, Office 365, CalDAV)
- Stateless app on managed Postgres - disposable container
- AGPLv3 core; no per-seat pricing
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
calcom | scheduling app (stateless, :5000) | yes |
db | managed Postgres (citext) - all state | no |
Before you deploy
NEXTAUTH_SECRETsession secret (openssl rand -base64 32)
CALENDSO_ENCRYPTION_KEY32-byte AES key (openssl rand -base64 24)
NEXT_PUBLIC_WEBAPP_URL / NEXTAUTH_URLthe https domain
Sizing and billing
The Next.js app wants ~1.5-2 GiB (large image, slow first boot - allow a generous health-check grace). Postgres holds everything, so the app scales and rolls back cleanly.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 10 GiB of volumes cost $0.15 per GiB a month ($1.50/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Calendly | Teams | $160/mo | $16/seat/mo at 10 seats |
| Calendly | Standard | $120/mo | $12/seat/mo at 10 seats |
Scheduling tools meter per seat; Cal.com self-hosted is one deployment for the whole team, with no per-seat fee. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
What does this save vs Calendly?
Calendly prices per user per month and gates features per seat, so a team multiplies fast. Cal.com self-hosted is one deployment for everyone, with no per-seat fee and your booking data on your own infrastructure.
Why does the database need the citext extension?
Cal.com's Prisma migrations create a case-insensitive text type (citext) on start, so the managed Postgres is provisioned with that extension enabled. It is a standard contrib extension - the template wires it for you.
Is the self-hosted version limited?
The core scheduling app is AGPLv3 and fully functional self-hosted. Some enterprise features under the /ee directory need a paid license key, but booking pages, teams, availability, and calendar sync do not.