Docker Compose Deployment
Single-server Raphtory with monitoring stack
Production-ready Docker Compose setup with Prometheus, Grafana, and best practices.
Complete Stack
Prometheus Configuration
Create prometheus.yml:
Grafana Datasource
Create grafana/datasources/prometheus.yml:
Deployment
Resource Sizing
| Graph Size | CPU | Memory | Storage |
|---|---|---|---|
| <10M edges | 4 cores | 16GB | 50GB SSD |
| 10-50M edges | 8 cores | 32GB | 200GB SSD |
| 50-100M edges | 16 cores | 64GB | 500GB SSD |
Best Practices
- Persistence: Mount
/data/graphsfor persistent storage - Logging: Centralize logs to
/var/log/raphtory - Backups: Schedule regular backups of graph data
- Updates: Use version pinning for production
- Monitoring: Configure Grafana alerts
See Also
- Kubernetes Deployment - Scale beyond single server
- Prometheus + Grafana - Detailed monitoring setup