You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/self-hosting/docker.mdx
+88-12Lines changed: 88 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,15 @@ title: "Docker"
3
3
icon: "docker"
4
4
---
5
5
6
-
The Docker configuration for Cal is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
6
+
### Introduction
7
+
8
+
This image can be found on DockerHub at https://hub.docker.com/r/calcom/cal.com.
9
+
10
+
Note for ARM Users: Use the {version}-arm suffix for pulling images. Example: `docker pull calcom/cal.com:v5.6.19-arm`.
11
+
12
+
### Contributing
13
+
14
+
The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not yet provide official support for Docker, but we will accept fixes and documentation at this time. Use at your own risk.
7
15
8
16
If you want to contribute to the Docker repository, [reply here](https://github.com/calcom/docker/discussions/32).
9
17
@@ -26,24 +34,63 @@ Note: `docker compose` without the hyphen is now the primary method of using doc
26
34
2. Change into the directory
27
35
28
36
```
29
-
cd calcom-docker
37
+
cd docker
30
38
```
31
39
32
-
4. Rename `.env.example` to `.env` and then update `.env`
40
+
3. Prepare your configuration: Rename .env.example to .env and then update .env
41
+
```
42
+
cp .env.example .env
43
+
```
44
+
Most configurations can be left as-is, but for configuration options see Important Run-time variables below.
33
45
34
-
5. Build and start Cal.com via docker compose
46
+
Update the appropriate values in your .env file, then proceed.
47
+
48
+
4. (optional) Pre-Pull the images by running the following command
35
49
36
50
```
37
-
docker compose up --build
51
+
docker compose pull
38
52
```
53
+
5. Start Cal.com via docker compose
39
54
40
-
6. (First Run) Open a browser to [http://localhost:5555](http://localhost:5555/) to look at or modify the database content.
41
-
42
-
a. Click on the `User` model to add a new user record.
43
-
44
-
b. 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.
55
+
(Most basic users, and for First Run) To run the complete stack, which includes a local Postgres database, Cal.com web app, and Prisma Studio:
56
+
57
+
```bash
58
+
docker compose up -d
59
+
```
45
60
46
-
7. Open a browser to [http://localhost:3000](http://localhost:3000/) and login with your just created, first user.
61
+
To run Cal.com web app and Prisma Studio against a remote database, ensure that DATABASE_URL is configured for an available database and run:
62
+
63
+
```bash
64
+
docker compose up -d calcom studio
65
+
```
66
+
67
+
To run only the Cal.com web app, ensure that DATABASE_URL is configured for an available database and run:
68
+
69
+
```bash
70
+
docker compose up -d calcom
71
+
```
72
+
73
+
6. Open a browser to [http://localhost:3000](http://localhost:3000), or your defined NEXT_PUBLIC_WEBAPP_URL. The first time you run Cal.com, a setup wizard will initialize. Define your first user, and you're ready to go!
74
+
75
+
### Update Calcom Instance
76
+
77
+
1. Stop the Cal.com stack
78
+
79
+
```bash
80
+
docker compose down
81
+
```
82
+
83
+
2. Pull the latest changes
84
+
85
+
```bash
86
+
docker compose pull
87
+
```
88
+
3. Update environment variables as necessary.
89
+
4. Re-start the Cal.com stack
90
+
91
+
```bash
92
+
docker compose up -d
93
+
```
47
94
48
95
### Configuration
49
96
@@ -61,8 +108,37 @@ These variables must be provided at the time of the docker build, and can be pro
61
108
62
109
* NEXTAUTH_SECRET
63
110
64
-
### Troubleshooting
111
+
## Advanced Users - Building and Configuring
112
+
113
+
Check out the [Cal.com Docker](https://github.com/calcom/docker) repository for more detailed instructions on how to build and configure your own Docker image.
114
+
115
+
## Troubleshooting
65
116
66
117
* SSL edge termination: If running behind a load balancer which handles SSL certificates, you will need to add the environmental variable `NODE_TLS_REJECT_UNAUTHORIZED=0` to prevent requests from being rejected. Only do this if you know what you are doing and trust the services/load-balancers directing traffic to your service.
67
118
68
119
* Failed to commit changes: Invalid 'prisma.user.create()': Certain versions may have trouble creating a user if the field `metadata` is empty. Using an empty json object `{}` as the field value should resolve this issue. Also, the `id` field will autoincrement, so you may also try leaving the value of `id` as empty.
120
+
121
+
### CLIENT_FETCH_ERROR
122
+
123
+
If you experience this error, it may be the way the default Auth callback in the server is using the WEBAPP_URL as a base url. The container does not necessarily have access to the same DNS as your local machine, and therefor needs to be configured to resolve to itself. You may be able to correct this by configuring `NEXTAUTH_URL=http://localhost:3000/api/auth`, to help the backend loop back to itself.
0 commit comments