mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
* feat: privacy, imprint, and terms URL env vars now do not need rebuilding * feat: disable_singup env var now do not need rebuilding * feat: password_reset_disabled env var now do not need rebuilding * feat: email_verification_disabled env var now do not need rebuilding * feat: github_oauth & google_oauth env var now do not need rebuilding * feat: move logic of env vars to serverside and send boolean client-side * feat: invite_disabled env var now do not need rebuilding * feat: rename vars logically * feat: migration guide * feat: update docker-compose as per v1.1 * deprecate: unused NEXT_PUBLIC_VERCEL_URL & VERCEL_URL * deprecate: unused RAILWAY_STATIC_URL * deprecate: unused RENDER_EXTERNAL_URL * deprecate: unused HEROKU_APP_NAME * fix: define WEBAPP_URL & replace NEXT_WEBAPP_URL with it * migrate: NEXT_PUBLIC_IS_FORMBRICKS_CLOUD to IS_FORMBRICKS_CLOUD * chore: move all env parsing to a constants.ts from page files * feat: migrate client side envs to server side * redo: isFormbricksCloud to navbar serverside page * fix: constants is now a server only file * fix: removal of use swr underway * fix: move 1 tag away from swr to service * feat: move away from tags swr * feat: move away from surveys swr * feat: move away from eventClass swr * feat: move away from event swr * fix: make constants server-only * remove comments from .env.example, use constants in MetaInformation * clean up services * rename tag function * fix build error * fix smaller bugs, fix Response % not working in summary --------- Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
87 lines
2.5 KiB
YAML
87 lines
2.5 KiB
YAML
version: "3.3"
|
|
x-environment: &environment
|
|
environment:
|
|
# The url of your Formbricks instance used in the admin panel
|
|
WEBAPP_URL:
|
|
|
|
# PostgreSQL DB for Formbricks to connect to
|
|
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/formbricks?schema=public"
|
|
|
|
# Uncomment to enable a dedicated connection pool for Prisma using Prisma Data Proxy
|
|
# Cold boots will be faster and you'll be able to scale your DB independently of your app.
|
|
# @see https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy
|
|
# PRISMA_GENERATE_DATAPROXY=true
|
|
PRISMA_GENERATE_DATAPROXY:
|
|
|
|
# NextJS Auth
|
|
# @see: https://next-auth.js.org/configuration/options#nextauth_secret
|
|
# You can use: `openssl rand -base64 32` to generate one
|
|
NEXTAUTH_SECRET:
|
|
|
|
# Set this to your public-facing URL, e.g., https://example.com
|
|
# You do not need the NEXTAUTH_URL environment variable in Vercel.
|
|
NEXTAUTH_URL: http://localhost:3000
|
|
|
|
# PostgreSQL password
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
# Email Configuration
|
|
MAIL_FROM:
|
|
SMTP_HOST:
|
|
SMTP_PORT:
|
|
SMTP_SECURE_ENABLED:
|
|
SMTP_USER:
|
|
SMTP_PASSWORD:
|
|
|
|
# Uncomment the below and set it to 1 to disable Email Verification for new signups
|
|
# EMAIL_VERIFICATION_DISABLED:
|
|
|
|
# Uncomment the below and set it to 1 to disable Password Reset
|
|
# PASSWORD_RESET_DISABLED:
|
|
|
|
# Uncomment the below and set it to 1 to disable Signups
|
|
# SIGNUP_DISABLED:
|
|
|
|
# Uncomment the below and set it to 1 to disable Invites
|
|
# INVITE_DISABLED:
|
|
|
|
# Uncomment the below and set a value to have your own Privacy Page URL on the signup & login page
|
|
# PRIVACY_URL:
|
|
|
|
# Uncomment the below and set a value to have your own Terms Page URL on the auth and the surveys page
|
|
# TERMS_URL:
|
|
|
|
# Uncomment the below and set a value to have your own Imprint Page URL on the auth and the surveys page
|
|
# IMPRINT_URL:
|
|
|
|
# Uncomment the below and set to 1 if you want to enable GitHub OAuth
|
|
# GITHUB_AUTH_ENABLED:
|
|
# GITHUB_ID:
|
|
# GITHUB_SECRET:
|
|
|
|
# Uncomment the below and set to 1 if you want to enable Google OAuth
|
|
# GOOGLE_AUTH_ENABLED:
|
|
# GOOGLE_CLIENT_ID:
|
|
# GOOGLE_CLIENT_SECRET:
|
|
|
|
services:
|
|
postgres:
|
|
restart: always
|
|
image: postgres:15-alpine
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
<<: *environment
|
|
|
|
formbricks:
|
|
restart: always
|
|
image: formbricks/formbricks:latest
|
|
depends_on:
|
|
- postgres
|
|
ports:
|
|
- 3000:3000
|
|
<<: *environment
|
|
|
|
volumes:
|
|
postgres:
|
|
driver: local
|