Why Self-Host Databuddy?
Databuddy is a privacy-first analytics platform built with modern web technologies. While we offer a hosted solution, self-hosting gives you complete control over your data and infrastructure.Benefits of Self-Hosting
Complete Data Ownership When you self-host Databuddy, all analytics data stays on your infrastructure. You have full control over:- Where your data is stored (on-premise or your cloud provider)
- Data retention policies
- Backup and disaster recovery strategies
- Database access and query capabilities
- Keep data within specific geographic regions
- Meet GDPR, CCPA, and other regulatory requirements
- Avoid third-party data processing agreements
- Full audit trail of data access
- No per-event pricing
- Optimize infrastructure costs for your specific usage patterns
- Scale ClickHouse and PostgreSQL independently
- Use existing infrastructure and credits
- Modify analytics schemas to track custom metrics
- Direct database access for custom queries and reports
- Integrate with internal tools and workflows
- Custom authentication and authorization
When to Self-Host
Ideal Use Cases
Enterprise Deployments
Organizations with strict data governance requirements and dedicated DevOps teams.
High-Volume Analytics
Applications tracking millions of events per day where infrastructure costs matter.
Custom Infrastructure
Teams with existing Kubernetes, PostgreSQL, or ClickHouse deployments.
Data Residency
Applications requiring data to stay in specific regions or on-premise.
When Cloud Hosting Makes Sense
Consider our managed cloud offering if you:- Want zero infrastructure management overhead
- Need to get started quickly without DevOps setup
- Have variable traffic patterns that benefit from auto-scaling
- Prefer predictable pricing without infrastructure complexity
Architecture Overview
Databuddy’s self-hosted architecture consists of:Core Components
PostgreSQL 17- User accounts and authentication
- Website configurations
- Organizations and teams
- API keys and permissions
- Real-time analytics events
- Web vitals metrics
- Error tracking
- Custom events and revenue data
- AI usage observability
- Session management
- Query result caching
- Rate limiting
- API server (Elysia)
- Dashboard (Next.js 16)
- Background jobs
License
Databuddy is licensed under AGPL-3.0, which means:- You can self-host and modify Databuddy freely
- If you modify and distribute Databuddy, you must share your changes
- Network use (API access) triggers AGPL distribution requirements
- Commercial support and enterprise licenses available
Next Steps
System Requirements
Check hardware and software requirements
Docker Setup
Get started with Docker Compose
Environment Variables
Configure your deployment
Database Setup
Initialize PostgreSQL and ClickHouse
Support
Need help with self-hosting?- GitHub Issues - Bug reports and feature requests
- Discord Community - Community support and discussions
- Email Support - Direct assistance for self-hosting