This commit is contained in:
2026-04-26 12:33:38 -07:00
+31 -9
View File
@@ -1,6 +1,6 @@
services: services:
postgres: postgres:
image: postgres:15-alpine image: pgvector/pgvector:pg15
container_name: formbricks-db container_name: formbricks-db
environment: environment:
POSTGRES_USER: postgres POSTGRES_USER: postgres
@@ -8,13 +8,34 @@ services:
POSTGRES_DB: formbricks POSTGRES_DB: formbricks
volumes: volumes:
- postgres-data:/var/lib/postgresql/data - postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "psql -U postgres -d formbricks -c 'SELECT 1' > /dev/null 2>&1"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: formbricks-redis
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped restart: unless-stopped
formbricks: formbricks:
image: ghcr.io/formbricks/formbricks:latest image: ghcr.io/formbricks/formbricks:latest
container_name: formbricks-app container_name: formbricks-app
depends_on: depends_on:
- postgres postgres:
condition: service_healthy
redis:
condition: service_healthy
ports: ports:
- ${PORT}:3000 - ${PORT}:3000
environment: environment:
@@ -23,13 +44,14 @@ services:
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET} NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
NEXTAUTH_URL: ${WEBAPP_URL} NEXTAUTH_URL: ${WEBAPP_URL}
ENCRYPTION_KEY: ${ENCRYPTION_KEY} ENCRYPTION_KEY: ${ENCRYPTION_KEY}
MAIL_FROM: ${MAIL_FROM} REDIS_URL: redis://redis:6379
SMTP_HOST: ${SMTP_HOST} volumes:
SMTP_PORT: ${SMTP_PORT} - uploads:/home/nextjs/apps/web/uploads
SMTP_SECURE_ENABLED: ${SMTP_SECURE_ENABLED} - saml:/home/nextjs/apps/web/saml-connection
SMTP_USER: ${SMTP_USER}
SMTP_PASSWORD: ${SMTP_PASSWORD}
restart: unless-stopped restart: unless-stopped
volumes: volumes:
postgres-data: postgres-data:
redis-data:
uploads:
saml: