mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-08 18:59:05 -06:00
Compare commits
2 Commits
fix/7165-w
...
devops-com
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da52ca0385 | ||
|
|
aa0f916a8f |
@@ -3,11 +3,11 @@ x-environment: &environment
|
|||||||
######################################################## REQUIRED ########################################################
|
######################################################## REQUIRED ########################################################
|
||||||
|
|
||||||
# The url of your Formbricks instance used in the admin panel
|
# The url of your Formbricks instance used in the admin panel
|
||||||
# Set this to your public-facing URL, e.g., https://example.com
|
# Set this to your public-facing URL, e.g., example http://localhost:3000 or https://example.com
|
||||||
WEBAPP_URL:
|
WEBAPP_URL:
|
||||||
|
|
||||||
# Required for next-auth. Should be the same as WEBAPP_URL
|
# Required for next-auth. Should be the same as WEBAPP_URL
|
||||||
NEXTAUTH_URL:
|
NEXTAUTH_URL:
|
||||||
|
|
||||||
# PostgreSQL DB for Formbricks to connect to
|
# PostgreSQL DB for Formbricks to connect to
|
||||||
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/formbricks?schema=public"
|
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/formbricks?schema=public"
|
||||||
@@ -15,15 +15,15 @@ x-environment: &environment
|
|||||||
# NextJS Auth
|
# NextJS Auth
|
||||||
# @see: https://next-auth.js.org/configuration/options#nextauth_secret
|
# @see: https://next-auth.js.org/configuration/options#nextauth_secret
|
||||||
# You can use: `openssl rand -hex 32` to generate one
|
# You can use: `openssl rand -hex 32` to generate one
|
||||||
NEXTAUTH_SECRET:
|
NEXTAUTH_SECRET:
|
||||||
|
|
||||||
# Encryption Key is used for 2FA & Single use URLs for Link Surveys
|
# Encryption Key is used for 2FA & Single use URLs for Link Surveys
|
||||||
# You can use: $(openssl rand -hex 32) to generate one
|
# You can use: $(openssl rand -hex 32) to generate one
|
||||||
ENCRYPTION_KEY:
|
ENCRYPTION_KEY:
|
||||||
|
|
||||||
# API Secret for running cron jobs.
|
# API Secret for running cron jobs.
|
||||||
# You can use: $(openssl rand -hex 32) to generate a secure one
|
# You can use: $(openssl rand -hex 32) to generate a secure one
|
||||||
CRON_SECRET:
|
CRON_SECRET:
|
||||||
|
|
||||||
# Redis URL for caching, rate limiting, and audit logging
|
# Redis URL for caching, rate limiting, and audit logging
|
||||||
# To use external Redis/Valkey: remove the redis service below and update this URL
|
# To use external Redis/Valkey: remove the redis service below and update this URL
|
||||||
@@ -201,9 +201,13 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- postgres:/var/lib/postgresql/data
|
- postgres:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
# Postgres DB Super User Password
|
|
||||||
# Replace the below with your own secure password & Make sure the password matches the password field in DATABASE_URL above
|
|
||||||
- POSTGRES_PASSWORD=postgres
|
- POSTGRES_PASSWORD=postgres
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres || exit 1"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 30
|
||||||
|
start_period: 30s
|
||||||
|
|
||||||
# Redis/Valkey service for caching, rate limiting, and audit logging
|
# Redis/Valkey service for caching, rate limiting, and audit logging
|
||||||
# Remove this service if you want to use an external Redis/Valkey instance
|
# Remove this service if you want to use an external Redis/Valkey instance
|
||||||
@@ -215,13 +219,21 @@ services:
|
|||||||
- redis:/data
|
- redis:/data
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "valkey-cli", "ping"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 30
|
||||||
|
start_period: 10s
|
||||||
|
|
||||||
formbricks:
|
formbricks:
|
||||||
restart: always
|
restart: always
|
||||||
image: ghcr.io/formbricks/formbricks:latest
|
image: ghcr.io/formbricks/formbricks:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
- redis
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user