Formbricks can be self-hosted on your own infrastructure, giving you complete control over your data and deployment. This guide provides an overview of the available deployment options and requirements.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formbricks/formbricks/llms.txt
Use this file to discover all available pages before exploring further.
Why Self-Host?
Self-hosting Formbricks offers several advantages:- Data Sovereignty: Keep all survey data within your infrastructure
- Customization: Full control over configuration and customization
- Compliance: Meet specific regulatory or compliance requirements
- Cost Control: Optimize costs for high-volume usage
- Network Isolation: Run Formbricks within your private network
Deployment Options
Formbricks supports multiple deployment methods to fit your infrastructure:Docker Compose
Deploy with Docker and Docker Compose - ideal for single-server deployments
Kubernetes
Enterprise-grade deployment using Helm charts with auto-scaling
Railway
One-click deployment on Railway’s managed platform
System Requirements
Minimum Requirements
- CPU: 2 cores
- RAM: 4GB
- Storage: 20GB SSD
- OS: Linux (Ubuntu 20.04+ recommended)
Recommended for Production
- CPU: 4+ cores
- RAM: 8GB+
- Storage: 50GB+ SSD
- Database: PostgreSQL 17 with pgvector extension
- Cache: Redis/Valkey for optimal performance
Required Services
Formbricks requires the following services:PostgreSQL Database
Formbricks uses PostgreSQL with the pgvector extension for storing survey data and responses.- Version: PostgreSQL 17 recommended
- Extension: pgvector for AI features
- Schema: Managed automatically via Prisma migrations
Redis/Valkey Cache
Used for caching, rate limiting, and audit logging.- Version: Redis 6+ or Valkey (Redis fork)
- Persistence: AOF (Append-Only File) recommended
- Use Cases: Session storage, rate limiting, cache
Core Configuration
All deployment methods require the following essential configuration:Required Environment Variables
Optional Features
Email Configuration
Email Configuration
Configure SMTP for email verification and password reset:
File Storage (S3)
File Storage (S3)
Required for file uploads in serverless environments:
OAuth Providers
OAuth Providers
Enable single sign-on with OAuth providers:
Enterprise Features
Enterprise Features
Security Considerations
Generate Secure Keys
Use OpenSSL to generate cryptographically secure keys:NEXTAUTH_SECRETENCRYPTION_KEYCRON_SECRET
SSL/TLS Certificates
Always use HTTPS in production:- Use a reverse proxy (Traefik, Nginx, Caddy) with automatic SSL
- Configure SSL certificates via Let’s Encrypt
- Ensure proper certificate renewal automation
Network Security
- Restrict database access to application servers only
- Use firewalls to limit exposed ports
- Enable rate limiting to prevent abuse
- Consider using a VPN for internal access
Next Steps
Choose your deployment method:Quick Start with Docker
Get started in minutes with Docker Compose
Production on Kubernetes
Deploy a scalable production instance
Getting Help
If you encounter issues during deployment:- Check the GitHub Issues
- Join the Formbricks Discord Community
- Review the troubleshooting guide