Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit 97e0f81

Browse files
authored
Merge branch 'main' into main
2 parents 7781c85 + 9e67ef9 commit 97e0f81

File tree

6 files changed

+32
-25
lines changed

6 files changed

+32
-25
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ EMAIL_SERVER_PASSWORD=email_password
7777

7878
NODE_ENV=production
7979

80+
# Set this to 'non-strict' to enable CSP for support pages. 'strict' isn't supported yet. Also, check the README for details.
81+
# Content Security Policy
82+
CSP_POLICY=
83+
8084
# VAPID keys for push notifications
8185
# Generate using: npx web-push generate-vapid-keys
8286
NEXT_PUBLIC_VAPID_PUBLIC_KEY=

.github/workflows/docker-build-push-dockerhub-arm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: Build and push ARM image to DockerHub (testing)
3+
name: Build and push ARM image to DockerHub
44

55
# Controls when the workflow will run
66
on:
@@ -84,7 +84,7 @@ jobs:
8484
# Add flavor latest only on full releases, not on pre-releases
8585
flavor: |
8686
latest=false
87-
suffix=-test-arm
87+
suffix=-arm
8888
# flavor: |
8989
# latest=${{ !github.event.release.prerelease }}
9090
# suffix=-arm

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
3030
NEXT_PUBLIC_SINGLE_ORG_SLUG=$NEXT_PUBLIC_SINGLE_ORG_SLUG \
3131
ORGANIZATIONS_ENABLED=$ORGANIZATIONS_ENABLED \
3232
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE} \
33-
BUILD_STANDALONE=true
33+
BUILD_STANDALONE=true \
34+
CSP_POLICY=$CSP_POLICY
3435

3536
COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/i18n.json ./
3637
COPY calcom/.yarn ./.yarn
@@ -90,3 +91,4 @@ HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
9091
CMD wget --spider http://localhost:3000 || exit 1
9192

9293
CMD ["/calcom/scripts/start.sh"]
94+

README.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,17 @@
2525
</p>
2626
</p>
2727

28-
# Docker
29-
30-
This image can be found on DockerHub at [https://hub.docker.com/r/calcom/cal.com](https://hub.docker.com/r/calcom/cal.com)
28+
# Important Notes
3129

32-
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.
30+
Support for this image can be found via the repository, located at [https://github.com/calcom/docker](https://github.com/calcom/docker)
3331

34-
## Important Notes
32+
# Docker
3533

36-
This Docker Image is managed by the Cal.com Community. Join the team [here](https://github.com/calcom/docker/discussions/32). Support for this image can be found via the repository, located at [https://github.com/calcom/docker](https://github.com/calcom/docker)
34+
This image can be found on DockerHub at [https://hub.docker.com/r/calcom/cal.com](https://hub.docker.com/r/calcom/cal.com).
3735

38-
**Currently, this image is intended for local development/evaluation use only, as there are specific requirements for providing environmental variables at build-time in order to specify a non-localhost BASE_URL. (this is due to the nature of the static site compilation, which embeds the variable values). The ability to update these variables at runtime is in-progress and will be available in the future.**
36+
**Note for ARM Users**: Use the {version}-arm suffix for pulling images. Example: `docker pull calcom/cal.com:v5.6.19-arm`.
3937

40-
For Production, for the time being, please checkout the repository and build/push your own image privately.
38+
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.
4139

4240
## Requirements
4341

@@ -49,7 +47,7 @@ Note: `docker compose` without the hyphen is now the primary method of using doc
4947

5048
If you are evaluating Cal.com or running with minimal to no modifications, this option is for you.
5149

52-
1. Clone calcom/docker
50+
1. Clone calcom/docker.
5351

5452
```bash
5553
git clone --recursive https://github.com/calcom/docker.git
@@ -150,7 +148,7 @@ If you are evaluating Cal.com or running with minimal to no modifications, this
150148
151149
## (Advanced users) Build and Run Cal.com
152150
153-
1. Clone calcom/docker
151+
1. Clone calcom/docker.
154152
155153
```bash
156154
git clone https://github.com/calcom/docker.git calcom-docker
@@ -162,7 +160,7 @@ If you are evaluating Cal.com or running with minimal to no modifications, this
162160
cd calcom-docker
163161
```
164162
165-
3. Update the calcom submodule.
163+
3. Update the calcom submodule. This project depends on the Cal.com source code, which is included here as a Git submodule. To make sure you get everything you need, update the submodule with the command below.
166164
167165
```bash
168166
git submodule update --remote --init
@@ -224,31 +222,33 @@ These variables must also be provided at runtime
224222

225223
| Variable | Description | Required | Default |
226224
| --- | --- | --- | --- |
225+
| DATABASE_URL | database url with credentials - if using a connection pooler, this setting should point there | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
227226
| CALCOM_LICENSE_KEY | Enterprise License Key | optional | |
228227
| NEXT_PUBLIC_WEBAPP_URL | Base URL of the site. NOTE: if this value differs from the value used at build-time, there will be a slight delay during container start (to update the statically built files). | optional | `http://localhost:3000` |
229228
| NEXTAUTH_URL | Location of the auth server. By default, this is the Cal.com docker instance itself. | optional | `{NEXT_PUBLIC_WEBAPP_URL}/api/auth` |
230229
| NEXTAUTH_SECRET | must match build variable | required | `secret` |
231230
| CALENDSO_ENCRYPTION_KEY | must match build variable | required | `secret` |
232-
| DATABASE_URL | database url with credentials - if using a connection pooler, this setting should point there | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
233-
| DATABASE_DIRECT_URL | direct database url with credentials if using a connection pooler (e.g. PgBouncer, Prisma Accelerate, etc.) | optional | |
234231

235232
### Build-time variables
236233

237234
If building the image yourself, these variables must be provided at the time of the docker build, and can be provided by updating the .env file. Currently, if you require changes to these variables, you must follow the instructions to build and publish your own image.
238235

239-
Updating these variables is not required for evaluation, but is required for running in production. Instructions for generating variables can be found in the [cal.com instructions](https://github.com/calcom/cal.com)
236+
Updating these variables is not required for evaluation, but is required for running in production. Instructions for generating variables can be found in the [Cal.com instructions](https://github.com/calcom/cal.com)
240237

241238
| Variable | Description | Required | Default |
242239
| --- | --- | --- | --- |
243-
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | optional | `http://localhost:3000` |
244-
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | |
245-
| NEXT_PUBLIC_WEBSITE_TERMS_URL | custom URL for terms and conditions website | optional | `https://cal.com/terms` |
246-
| NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL | custom URL for privacy policy website | optional | `https://cal.com/privacy` |
247-
| CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | |
248240
| DATABASE_URL | database url with credentials - if using a connection pooler, this setting should point there | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
249-
| DATABASE_DIRECT_URL | direct database url with credentials if using a connection pooler (e.g. PgBouncer, Prisma Accelerate, etc.) | optional | |
241+
| MAX_OLD_SPACE_SIZE | Needed for Nodejs/NPM build options | required | 4096 |
242+
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | required | |
250243
| NEXTAUTH_SECRET | Cookie encryption key | required | `secret` |
251244
| CALENDSO_ENCRYPTION_KEY | Authentication encryption key | required | `secret` |
245+
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | optional | `http://localhost:3000` |
246+
| NEXT_PUBLIC_WEBSITE_TERMS_URL | custom URL for terms and conditions website | optional | `https://cal.com/terms` |
247+
| NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL | custom URL for privacy policy website | optional | `https://cal.com/privacy` |
248+
| NEXT_PUBLIC_API_V2_URL | URL for the v2 API, only required for custom integrations or custom booking experiences using [Cal.com Platform](https://cal.com/platform) | optional | |
249+
| CALCOM_TELEMETRY_DISABLED | Allow Cal.com to collect anonymous usage data (set to `1` to disable) | optional | |
250+
| NEXT_PUBLIC_SINGLE_ORG_SLUG | Required if ORGANIZATIONS_ENABLED is true | optional | |
251+
| ORGANIZATIONS_ENABLED | Used for Enterprise or Organizations plan | optional | |
252252

253253
## Git Submodules
254254

@@ -297,5 +297,4 @@ docker-calcom-1 | @calcom/web:start: message: 'request to http://testing.loca
297297
docker-calcom-1 | @calcom/web:start: }
298298
```
299299
300-
301300
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=81cda9f7-a102-453b-ac01-51c35650bd70" />

calcom

Submodule calcom updated 1327 files

docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ services:
4949
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
5050
DATABASE_URL: ${DATABASE_URL}
5151
DATABASE_DIRECT_URL: ${DATABASE_URL}
52+
CSP_POLICY: ${CSP_POLICY}
5253
restart: always
5354
networks:
5455
- stack
@@ -132,3 +133,4 @@ services:
132133
- prisma
133134
- studio
134135
# END SECTION: Optional use of Prisma Studio.
136+

0 commit comments

Comments
 (0)