docs: improve self-hosting contents (#28888)

This commit is contained in:
Benny Joo authored and GitHub committed 2026-04-15 01:18:24 +09:00
1 parent c0d105e7b3
commit c28d647a0d
43 files changed
+4214 -35

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
export default {
aws: "AWS",
azure: "Azure",
elestio: "Elestio",
gcp: "GCP",
northflank: "Northflank",
railway: "Railway",
render: "Render",
vercel: "Vercel",
};
+46
View File
@@ -0,0 +1,46 @@
# AWS
Deploying Cal.diy on AWS
## Manual Deployment
### 1. Prerequisites
1. Amazon Web Services account
2. Familiarity with AWS services and management console
3. Access to the Cal.diy source code
### 2. AWS Environment Setup
1. **Create an AWS Account:** If not already set up, create an account on AWS.
2. **Management Console:** Log in to the AWS Management Console.
### 3. Creating AWS Resources
1. **Create a New IAM User:** Set up an IAM user with the necessary permissions for deploying and managing the application.
2. **Set Up Required Services:** Establish services like Amazon EC2, RDS for PostgreSQL, etc., as needed for your application.
### 4. Configuring Cal.diy
1. **Clone the Repository:** Get the Cal.diy repository onto your local environment.
2. **Update Configuration:** Modify the .env file to include your AWS resource details (like database endpoints).
### 5. Deploying on AWS
1. **Deploy Application:** Utilize AWS services such as EC2 or Elastic Beanstalk to deploy the Cal.diy application.
2. **Database Configuration:** Set up and connect the RDS instance to your application.
3. **Verify Deployment:** Ensure the application is operational and accessible.
### 6. Post-Deployment Steps
1. **DNS Setup:** Update your DNS settings to point to your AWS deployment.
2. **Monitoring and Scaling:** Leverage AWS monitoring tools to keep track of your application's performance and scale resources accordingly.
### Best Practices
1. Regularly update your deployment with the latest Cal.diy releases.
2. Adhere to AWS's recommended security practices.
### Additional Resources
[https://docs.aws.amazon.com/](https://docs.aws.amazon.com/)
+47
View File
@@ -0,0 +1,47 @@
# Azure
Deploying Cal.diy on Azure
## One Click Deployment
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template)
## Manual Deployment
### 1. Prerequisites
1. Microsoft Azure account
2. Basic knowledge of Azure services
3. Access to Cal.diy source code
### 2. Azure Setup
1. **Create an Azure Account**
2. **Azure Portal:** Familiarize yourself with the Azure Portal.
### 3. Creating Azure Resources
1. **Creating Azure Resources:** In the Azure Portal, create a new resource group for your Cal.diy project.
2. **Create Azure Services:** Set up required services such as Azure App Service, Azure Database for PostgreSQL, etc.
#### Create Web App
#### Setup Database, Networking
#### Setup Monitoring
### 4. Configuring Cal.diy
1. **Clone Repository:** Clone the Cal.diy repository to your local machine.
2. **Configuration Files:** Update the .env file with necessary Azure configurations (e.g., database connection strings).
### 5. Deploying on Azure
1. **Deploying Web App:** Use Azure App Service to deploy the Cal.diy web application.
2. **Database Setup:** Deploy and configure the Azure Database for PostgreSQL with Cal.diy.
3. **Deployment Verification:** Ensure that the application is running smoothly post-deployment.
### 6. Post-Deployment Steps
1. **DNS Configuration:** Configure your DNS settings to point to the Azure deployment.
2. **Monitor and Scale:** Utilize Azure monitoring tools to keep track of performance and scale resources as needed.
@@ -0,0 +1,7 @@
# Elestio
You can deploy Cal.diy on Elestio using the button below.
## One Click Deployment
[![Deploy on Elestio](https://elest.io/images/logos/deploy-to-elestio-btn.png)](https://dash.elest.io/deploy?soft=Cal&id=347)
+102
View File
@@ -0,0 +1,102 @@
# GCP
Deploying Cal.diy on Google Cloud Platform (GCP). In this guide, we will go over the steps to deploy Cal.diy on Google Cloud Platform (GCP). We will cover how to create a virtual machine, configure it, install Docker, and finally deploy the Cal.diy application.
## One Click Deployment
[![Run on Google Cloud](https://storage.googleapis.com/gweb-cloudblog-publish/images/run_on_google_cloud.max-300x300.png)](https://deploy.cloud.run/?git_repo=https://github.com/calcom/cal.diy)
## Manual Deployment
### 1. Creating a Virtual Machine
#### Go to the GCP Console
First, open the Google Cloud Platform console by visiting [https://console.cloud.google.com/](https://console.cloud.google.com/).
#### Create a New Project
If you haven't already, create a new project by clicking on the "Select a project" dropdown menu and selecting "New Project". Enter a name for your project and click on the "Create" button.
#### Create a New VM Instance
Click on the navigation menu icon (three horizontal lines) and select "Compute Engine" from the list. Then, click on "VM instances" in the sub-menu. Click on the "Create" button to create a new virtual machine.
#### Select the Machine Type
Choose the machine type that best suits your needs. Ideally, 2 vCPUs and 2-4GB RAM is enough.
#### Set Up Networking
Make sure the "Networking" tab is selected and click on the "Add network" button. Choose the "Default" network and click on the "Add" button.
#### Create the Instance
Review the details of your virtual machine and click on the "Create" button to create the instance. Note the public IP of the VM.
### 2. Configuring the Virtual Machine
Once your virtual machine is created, you need to configure it to allow traffic on port 80.
#### Open Port 80
Click on the navigation menu icon (three horizontal lines) and select "Compute Engine" from the list. Then, click on "VM instances" in the sub-menu. Find your newly created instance and click on its name to enter its details page. Click on the "Firewalls" tab and then click on the "Add firewall rule" button. Select "Allow all" as the source and destination, set the protocol to "tcp" and the ports to "80". Click on the "Add" button to save the changes.
### 3. Installing Docker
Now that your virtual machine is configured, you need to install Docker on it.
#### Connect to Your Instance
Open a terminal window on your local machine and use SSH to connect to your virtual machine. You can find the external IP address or DNS name of your instance in the GCP console. Use the following command to connect to your instance:
```bash
gcloud ssh --project=[PROJECT_ID] --zone=[ZONE] [INSTANCE_NAME]
```
Replace `[PROJECT_ID]` with your project ID, `[ZONE]` with the zone where your instance is located, and `[INSTANCE_NAME]` with the name of your instance. You can also use web based SSH.
#### Install Docker
Once connected, update the package list and install Docker using the following commands:
```bash
sudo apt-get update
sudo apt-get install docker.io
```
#### Start the Docker Service
Start the Docker service using the following command:
```bash
sudo systemctl start docker
```
### 4. Deploying Cal.diy
Now that Docker is installed and running, you can deploy Cal.diy on your virtual machine.
#### Pull the Docker Image
Use the following command to pull the Cal.diy Docker image from Docker Hub:
```bash
docker pull cal/calcom
```
#### Run the Docker Container
Run the Docker container using the following command:
```bash
docker run -d -p 80:80 cal/cal.com
```
This command maps port 80 on your local machine to port 80 inside the container, so you can access Cal.diy from outside the container.
#### Access Cal.diy
Open a web browser and navigate to `http://localhost`. You should now be able to access the Cal.diy homepage.
Congratulations! You have successfully deployed Cal.diy on Google Cloud Platform.
@@ -0,0 +1,9 @@
# Northflank
You can deploy Cal.diy on Northflank using the button below.
The team at Northflank also have a [detailed blog post](https://northflank.com/guides/deploy-calcom-with-northflank) on deploying Cal.diy on their platform.
## One Click Deployment
[![Deploy on Northflank](https://northflank.com/button.svg)](https://app.northflank.com/s/account/stack-templates/deploy-calcom)
@@ -0,0 +1,9 @@
# Railway
You can deploy Cal.diy on Railway using the button below.
The team at Railway also have a [detailed blog post](https://blog.railway.app/p/calcom) on deploying Cal.diy on their platform.
## One Click Deployment
[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/new/template/calcom)
+7
View File
@@ -0,0 +1,7 @@
# Render
You can deploy Cal.diy on Render using the button below.
## One Click Deployment
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/calcom/docker)
+75
View File
@@ -0,0 +1,75 @@
# Vercel
## Requirements
Currently Vercel Pro Plan is required to be able to Deploy this application with Vercel, due to limitations on the number of serverless functions on the free plan.
You need a PostgresDB database hosted somewhere. [Supabase](https://supabase.com) offer a great free option while [Heroku](https://heroku.com) offers a low-cost option.
## One Click Deployment
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/calcom/cal.com)
## Manual Deployment
### Local settings
1. **Fork and clone the repository**
```bash
git clone https://github.com/<<your-fork>>/cal.com.git
```
2. **Set environment variables**
Copy the `.env.example` file in `apps/web`, rename it to `.env` and fill it with your settings (See [manual setup](/installation) and Obtaining the Google API Credentials)
3. **Install packages with yarn**
```bash
yarn install
```
4. **Set up the database using the Prisma schema**
Schema is located in at `packages/prisma/schema.prisma`.
```bash
yarn workspace @calcom/prisma db-deploy
```
5. **Open Prisma Studio**
To look at or modify the database content
```bash
yarn db-studio
```
6. **Open User model**
Click on the `User` model to add a new user record.
7. **Create new user**
Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
8. **Login**
Open a browser to port 3000 on your localhost and login with your just created, first user.
> Sometimes, yarn install might fail during deployment on Vercel, in which case, you can use `YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install` as the install command instead.
#### Deployment
1. Create a new project on Vercel
2. Import from your forked repository
3. Set the Environment Variables
4. Set the root directory to `apps/web`
5. Override the build command to:
```bash
cd ../.. && yarn build --include-dependencies --no-deps
```
6. Hit Deploy