Deployment
Deploy to Google Cloud Run
Deploy CaseBender on Google Cloud Run with step-by-step instructions
Overview
This guide walks you through deploying CaseBender on Google Cloud Run using our pre-built Docker images.
Prerequisites
- Google Cloud Account
- Google Cloud CLI installed
- Docker installed
Step 1: Initial Setup
Install Google Cloud CLI
Initialize Project
Step 2: Set Up Cloud Infrastructure
Create Cloud Storage Bucket
Set Up Cloud SQL (PostgreSQL)
Set Up Memorystore (Redis)
Configure Secret Manager
Step 3: Pull and Push Docker Images
Step 4: Deploy Services
Deploy Main Application
Deploy Workflow Processor
Deploy MISP Processor
Step 5: Configure Domain and SSL
Map Custom Domain
Follow the DNS verification steps in the Google Cloud Console to complete domain mapping.
Monitoring and Maintenance
Set Up Monitoring
- Navigate to Cloud Monitoring in Google Cloud Console
- Create an uptime check for your service
- Set up alerts for:
- Error rates
- Latency
- Instance count
- Memory usage
View Logs
Update Application
To deploy updates:
Cost Optimization
-
Autoscaling Configuration
-
Resource Allocation
Troubleshooting
Common Issues
-
Connection Issues
- Verify Cloud SQL connection
- Check Redis connectivity
- Validate environment variables
-
Performance Problems
- Review instance metrics
- Check resource allocation
- Analyze request patterns
-
Deployment Failures
- Check build logs
- Verify service account permissions
- Review deployment configuration
Next Steps
- Set up CI/CD pipelines
- Configure backup strategies
- Implement monitoring and alerting
- Review security best practices