created Formbricks
This commit is contained in:
@@ -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
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user