How to Install Cal.com on VPS with Docker: Self-Hosted Scheduling with Booking Pages

Back-and-forth scheduling chats waste time in a way that feels small per message and large across a whole week. "What day works for you?" gets answered three days later, and the offered slot is already taken by then. A booking page flips the problem around: you define the meeting types and the hours you are available, and other people pick a slot themselves. Cal.com offers that kind of page as open-source software you can run on your own VPS, so scheduling data and guest details do not have to sit with a third-party service.

This guide installs Cal.com on a VPS with Docker following Cal.com's official Docker documentation: clone the main repository, copy the example environment file, run the full stack, then set up an event type and availability until the booking page is ready to share. One honest note up front: the self-hosted edition is the open-source edition, not a one-to-one replica of Cal.com's paid hosted service. Do not promise paid-plan features to a team before checking for yourself whether they exist in the edition you are running.

Before you start: what you need

  • A VPS with Docker and Docker Compose v2 installed. For personal use or a small team, 2 GB of RAM is usually enough; allow 4 GB if the same server runs many other services.
  • A domain or subdomain pointed at the VPS, for example cal.example.com. This guide uses that domain as an example.
  • Port 3000 free for the Cal.com application.
  • SMTP credentials if you want Cal.com to send booking notification emails. Without SMTP, bookings can still be created, but notification emails will not go out.
  • Your own OAuth credentials (Google or Microsoft, for example) only if you want to connect an external calendar. A calendar connection is not a prerequisite for running Cal.com — it can run first, and calendars can be connected later.

Check Docker and Compose first:

docker --version
docker compose version

Expected result: both commands print a version number without errors.

Step 1: clone the official repository and prepare the environment

Cal.com's official Docker documentation places the Docker configuration in the main calcom/cal.com repository. Clone it, enter the directory, and copy the example environment file:

git clone https://github.com/calcom/cal.com.git
cd cal.com
cp .env.example .env

Open .env and set at least these three things:

  • NEXT_PUBLIC_WEBAPP_URL — your public Cal.com address, for example https://cal.example.com. This value also underpins your booking page.
  • NEXTAUTH_URL — if it needs to be set manually, use the same public address plus /api/auth. Left empty, it resolves from NEXT_PUBLIC_WEBAPP_URL.
  • NEXTAUTH_SECRET — replace it with a long, unique random string. The official documentation flags this as an important runtime variable, and the Docker repository's example file suggests generating one with:
openssl rand -base64 32

Copy the result into NEXTAUTH_SECRET. Do not keep the example value from .env.example — it lives in a public repository and is known to everyone.

One note about repositories: Cal.com also has a separate calcom/docker repository with its own compose file and .env.example (database, Redis, app, and Prisma Studio services). It is useful as a reference, but the path this guide follows is the current official documentation path — cloning the main repository. If you choose the calcom/docker path instead, read that repository's README on the day you install, since its contents change and this guide does not copy its steps verbatim.

Step 2: start the full stack

From the cal.com directory, you may pre-pull the images first (optional), then start the complete stack — a local Postgres database, the Cal.com web app, and Prisma Studio:

docker compose pull
docker compose up -d

Then check the status:

docker compose ps
docker compose logs -f calcom

Expected result: the stack services show as running, and the app log stops showing database connection errors. The first start takes a little while because the app prepares its database schema; wait a minute or two before concluding something is wrong.

Open http://localhost:3000 from the VPS, or https://cal.example.com once a reverse proxy is live. On the first run, a setup wizard appears. This is where you create the first user — name, username, and password — and finish the wizard. That username shapes your booking page address, so pick one that is easy to share.

For public use behind a domain, do not leave port 3000 open directly to the internet. Put the app behind a reverse proxy as in the companion Listmonk guide in this batch, with proxy_pass to http://127.0.0.1:3000 and the Host, X-Real-IP, X-Forwarded-For, and X-Forwarded-Proto headers forwarded. A TLS certificate can be issued with Certbot once the domain's DNS points at the VPS.

Step 3: create the first event type

An event type is a kind of meeting other people can book — a 30-minute consultation, a 45-minute product demo, or a 15-minute introductory call, for example. Create one from the dashboard:

  • Open the event types menu and create a new one.
  • Set the duration, and several duration options if that fits.
  • Set the meeting location: a video link, a phone call, or an in-person meeting with the address written out clearly.
  • Save, then open your booking page and view it as a guest would.

Expected result: the booking page shows that event type with clickable time slots. If the page is empty or no slots appear, the cause is almost always the next step: availability has not been set yet.

Step 4: set availability and connect a calendar

Availability is your working schedule that Cal.com uses to calculate open slots. Set working hours per day, the time zone, and a buffer between meetings if you need breathing room between appointments. Without an active availability schedule, no slots can be booked — that is correct behaviour, not a bug.

Connect a calendar if you want Cal.com to avoid clashing with appointments that already exist elsewhere. From the apps/connections menu in the dashboard, pick a calendar provider (Google Calendar or Outlook, for example) and follow its authorisation flow. One thing to note: some connections require your own OAuth credentials entered in .env — a client ID and client secret for Google or Microsoft, for instance — because self-hosted Cal.com does not ship with shared credentials from the hosted service. If those credentials are missing, the connection will fail at the authorisation step, and that is a sign to complete .env first, not a sign of a broken install.

For booking notification emails, fill in the SMTP settings in .env (host, port, username, password, and From address), then restart the stack with docker compose up -d. Test with a trial booking from an incognito window: pick a slot, enter a name and email, then check whether the confirmation email reaches both sides.

Updating Cal.com

Updates follow the official documentation pattern: stop the stack, pull the latest changes, update environment variables if any changed, then start again:

docker compose down
docker compose pull
docker compose up -d

Do not run docker compose down -v — the -v flag removes volumes, including your booking database. Back up the database before a major version update, and read the repository's release notes if a new variable becomes required.

Common problems

The login page shows a CLIENT_FETCH_ERROR. According to the official documentation, this often happens because the auth callback uses a WEBAPP_URL the container itself cannot reach. Try setting NEXTAUTH_URL to an internal loopback address, such as http://localhost:3000/api/auth, then restart the stack.

Port 3000 is already in use. Check what else runs on the VPS with docker compose ps and your system's port tools. Move Cal.com to another port through the compose configuration, or stop the conflicting service.

Creating the first user fails with a Prisma error. The official documentation notes cases on certain versions where user creation fails when the metadata field is empty; filling it with an empty JSON object {} resolves the issue in those cases.

A calendar connection fails during authorisation. Almost always because the provider's OAuth credentials are not yet in .env, or the redirect URL in the provider's console does not yet list your domain. Fix both, restart the stack, and try again.

Prisma Studio is reachable publicly. Prisma Studio is a database tool, not a page for guests. On a production deployment, disable or remove the studio service from the compose setup so it is not exposed to the internet.

No booking slots appear. Check the availability schedule and its time zone first. If the schedule is empty or the time zone is wrong, Cal.com has no slots to show.

Summary

PartWhat is used
Install sourceThe calcom/cal.com repository, per Cal.com's official Docker docs
Core commandsgit clone, cp .env.example .env, docker compose up -d
AccessPort 3000 (or the NEXT_PUBLIC_WEBAPP_URL you set)
DatabaseLocal PostgreSQL from the bundled stack
Key variablesNEXT_PUBLIC_WEBAPP_URL, NEXTAUTH_URL, NEXTAUTH_SECRET
Features configuredEvent types, availability, connected calendars, email notifications via SMTP
Updatesdocker compose down, docker compose pull, docker compose up -d

Final checklist

  • The main repository is cloned and .env is copied from the example.
  • NEXT_PUBLIC_WEBAPP_URL points at your public domain.
  • NEXTAUTH_SECRET is replaced with your own random value.
  • The stack is running and the first-user wizard is complete.
  • One event type is created and visible on the booking page.
  • Availability and time zone are set.
  • A calendar is connected (or deliberately postponed) and a trial booking succeeds.
  • Notification emails are tested, and Prisma Studio is not exposed publicly.

One question for you: which kind of meeting eats most of your time in back-and-forth chats — client consultations, demos, or interviews? Tell us in the comments, and if your booking page gets stuck on any step above, post the error message so it can be discussed together.

Read also: if you also send regular updates to a reader list from the same VPS, the companion guide in this batch is available at the Listmonk guide to self-hosted newsletters with PostgreSQL and SMTP. Meanwhile, the Rnevio article "How to Install Gatus on VPS with Docker: Automated Status Pages and Health Checks" is useful for monitoring this booking page once it is live, so you hear about an outage first.

Diskusi

Ada pertanyaan atau pengalaman yang ingin dibagikan?

0komentar

Komentar ditinjau sebelum ditampilkan. Mari berdiskusi dengan sopan dan sesuai topik.