Deployment
Deploy HyperOps to production.
Docker Deployment
Build image
docker build -t hyperops:latest .
Run container
docker run -d \ --env-file .env \ -p 8000:8000 \ -e DATABASE_URL=postgresql://... \ hyperops:latest
Production Best Practices
- • Use strong SECRET_KEY (generate with: openssl rand -hex 32)
- • Use environment-specific database URLs
- • Rotate API keys regularly
- • Use managed Redis service for production
- • Enable HTTPS/TLS for all communications
- • Implement rate limiting and request validation
- • Use monitoring and alerting systems
- • Regular security audits
Using Gunicorn
gunicorn app.main:app \ --workers 4 \ --worker-class uvicorn.workers.UvicornWorker \ --bind 0.0.0.0:8000