From 29d174945b8c8fe151b4d329ca969b3f2bf6c44a Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Fri, 17 Apr 2026 23:19:49 -0700 Subject: [PATCH] created Formbricks --- Formbricks/.env.example | 38 ++++++++++++++++++++++++++++++++++ Formbricks/docker-compose.yaml | 35 +++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 Formbricks/.env.example create mode 100644 Formbricks/docker-compose.yaml diff --git a/Formbricks/.env.example b/Formbricks/.env.example new file mode 100644 index 0000000..420275e --- /dev/null +++ b/Formbricks/.env.example @@ -0,0 +1,38 @@ +# ─── PostgreSQL ─────────────────────────────────────────────────────────────── + +# Password for the postgres database user +POSTGRES_PASSWORD=changeme + +# ─── Formbricks ─────────────────────────────────────────────────────────────── + +# Host port mapped to the Formbricks container (internal port is always 3000) +PORT=3000 + +# Public-facing URL of the Formbricks instance (e.g. https://surveys.example.com) +WEBAPP_URL=http://localhost:3000 + +# Secret used to sign NextAuth session tokens — generate with: openssl rand -base64 32 +NEXTAUTH_SECRET=change-me-generate-with-openssl-rand-base64-32 + +# 32-byte hex encryption key for sensitive data at rest — generate with: openssl rand -hex 32 +ENCRYPTION_KEY=change-me-generate-with-openssl-rand-hex-32 + +# ─── SMTP / Email ───────────────────────────────────────────────────────────── + +# From address used for outgoing emails +MAIL_FROM=noreply@example.com + +# SMTP server hostname +SMTP_HOST=smtp.example.com + +# SMTP server port (typically 587 for STARTTLS, 465 for SSL) +SMTP_PORT=587 + +# Set to 1 to enable TLS/SSL on the SMTP connection +SMTP_SECURE_ENABLED=0 + +# SMTP authentication username +SMTP_USER=smtp-user@example.com + +# SMTP authentication password +SMTP_PASSWORD=changeme diff --git a/Formbricks/docker-compose.yaml b/Formbricks/docker-compose.yaml new file mode 100644 index 0000000..6c5336f --- /dev/null +++ b/Formbricks/docker-compose.yaml @@ -0,0 +1,35 @@ +services: + postgres: + image: postgres:15-alpine + container_name: formbricks-db + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: formbricks + volumes: + - postgres-data:/var/lib/postgresql/data + restart: unless-stopped + + formbricks: + image: ghcr.io/formbricks/formbricks:latest + container_name: formbricks-app + depends_on: + - postgres + ports: + - "${PORT}:3000" + environment: + WEBAPP_URL: ${WEBAPP_URL} + DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/formbricks?schema=public + NEXTAUTH_SECRET: ${NEXTAUTH_SECRET} + NEXTAUTH_URL: ${WEBAPP_URL} + ENCRYPTION_KEY: ${ENCRYPTION_KEY} + MAIL_FROM: ${MAIL_FROM} + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_SECURE_ENABLED: ${SMTP_SECURE_ENABLED} + SMTP_USER: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + restart: unless-stopped + +volumes: + postgres-data: \ No newline at end of file