Why self-host Cal.com on a VPS
Cal.com is a Next.js application backed by PostgreSQL that handles appointment scheduling, event types, availability and synchronization with calendars (Google, CalDAV, Office 365). Self-hosting answers a specific need: controlling the availability and appointment-booking data of your clients, which normally passes through a third-party US service. On a VPS, you eliminate the free plan's limits (a single event type, imposed branding), you connect your own Google/video API keys and you embed the booking widget directly into your site under your domain. Since Cal.com is a persistent Node application with a database and a production build, it requires a VPS — shared hosting can neither run the process nor host PostgreSQL.
Concrete benefits of a self-hosted Cal.com
- Unlimited event types: 15-min interviews, 30-min demos, group workshops, without a paywall.
- Booking data on your side: no leak of clients' contact details and time slots to a third-party SaaS.
- Full white-label: the booking link carries your domain, not a vendor's.
- Webhooks and API: trigger automations (CRM, billing) on every appointment booked.
- Google Calendar, CalDAV and video integrations (Jitsi, Google Meet) configured with your own keys.
- Team bookings and round-robin to distribute appointments among several collaborators.
Technical requirements
Cal.com is more demanding than the self-hosting average because of its Next.js foundation and the build step. Plan for 2 vCPUs, 4 GB of RAM and 20 GB of disk for a comfortable team instance; 2 GB of RAM can suffice for individual use but the initial build is tighter. You need Docker and Docker Compose, a PostgreSQL database (included in the official compose), a domain rdv.yourdomain.com pointed at the VPS, and several mandatory environment variables: NEXTAUTH_SECRET, CALENDSO_ENCRYPTION_KEY (randomly generated keys) and NEXT_PUBLIC_WEBAPP_URL set to your final HTTPS URL. For calendar sync and video, prepare the Google OAuth credentials.
Deploy Cal.com step by step
Clone the Docker deployment repository
On the VPS: git clone https://github.com/calcom/docker.git cal-docker && cd cal-docker. This repository provides a docker-compose.yml and an .env.example file to adapt.
Generate the secrets and configure the environment
Copy .env.example to .env, then generate the keys: openssl rand -base64 32 for NEXTAUTH_SECRET and for CALENDSO_ENCRYPTION_KEY. Set NEXT_PUBLIC_WEBAPP_URL=https://rdv.yourdomain.com and the PostgreSQL credentials.
Build and launch the stack
Start with docker compose up -d. The first startup builds the Next.js image and applies the Prisma migrations on PostgreSQL — this is the longest step, follow it with docker compose logs -f.
Place the reverse proxy and SSL
Put Cal.com (internal port 3000) behind an HTTPS reverse proxy. With Caddy: rdv.yourdomain.com { reverse_proxy calcom:3000 }. The certificate is obtained automatically. The URL must match NEXT_PUBLIC_WEBAPP_URL exactly, otherwise authentication fails.
Create the account and configure availability
Open https://rdv.yourdomain.com, create the owner account, set your time slots and a first event type. Test an end-to-end booking to validate the chain.
Connect calendar and video
In the integrations, add your Google OAuth credentials for bidirectional calendar sync, and enable Jitsi or Google Meet to automatically generate a video link on each booking.
Cal.com's memory build can fail on a 2 GB VPS during Next.js compilation. If you see a "JavaScript heap out of memory" error, temporarily add a 2 GB swap file (fallocate -l 2G /swapfile && mkswap /swapfile && swapon /swapfile) for the duration of the build, then remove it. For updates, always back up the PostgreSQL database before docker compose pull because the Prisma migrations are not reversible.