calcom: add DATABASE_DIRECT_URL (required by Prisma; migrations failed without it)
Cal.com's prisma schema declares directUrl=env(DATABASE_DIRECT_URL); without it the startup 'prisma migrate deploy' fails (P1012) and the schema stays incomplete -> the app 500s. Set to the same direct Postgres URL. Pre-existing, never caught (bad image pin meant calcom never deployed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,9 @@ services:
|
|||||||
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
||||||
- CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY}
|
- CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY}
|
||||||
- DATABASE_URL=postgresql://calcom:${DB_PASSWORD}@calcom-postgres:5432/calcom
|
- DATABASE_URL=postgresql://calcom:${DB_PASSWORD}@calcom-postgres:5432/calcom
|
||||||
|
# Cal.com's Prisma schema requires directUrl too; without it `prisma migrate deploy` fails on
|
||||||
|
# startup and the DB schema stays incomplete (500s on /api/health). Same direct Postgres URL.
|
||||||
|
- DATABASE_DIRECT_URL=postgresql://calcom:${DB_PASSWORD}@calcom-postgres:5432/calcom
|
||||||
- NEXT_PUBLIC_WEBAPP_URL=https://${SUBDOMAIN}.${DOMAIN}
|
- NEXT_PUBLIC_WEBAPP_URL=https://${SUBDOMAIN}.${DOMAIN}
|
||||||
- NEXTAUTH_URL=https://${SUBDOMAIN}.${DOMAIN}
|
- NEXTAUTH_URL=https://${SUBDOMAIN}.${DOMAIN}
|
||||||
# App-email (managed relay). Injected by the controller only when app-email is on (global + per-app);
|
# App-email (managed relay). Injected by the controller only when app-email is on (global + per-app);
|
||||||
|
|||||||
Reference in New Issue
Block a user