Skip to main content
Reference architecture only. This page is not a production-certified deployment procedure and predates the current activation, image-pinning, secret-management, and network-isolation baseline. Use the supported on-premises guide or complete an enterprise architecture review before deployment.

Overview

This guide walks you through deploying CaseBender on Google Cloud Run using our pre-built Docker images.

Prerequisites

  1. Google Cloud Account
  2. Google Cloud CLI installed
  3. 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

  1. Navigate to Cloud Monitoring in Google Cloud Console
  2. Create an uptime check for your service
  3. Set up alerts for:
    • Error rates
    • Latency
    • Instance count
    • Memory usage

View Logs

Update Application

To deploy updates:

Cost Optimization

  1. Autoscaling Configuration
  2. Resource Allocation

Troubleshooting

Common Issues

  1. Connection Issues
    • Verify Cloud SQL connection
    • Check Redis connectivity
    • Validate environment variables
  2. Performance Problems
    • Review instance metrics
    • Check resource allocation
    • Analyze request patterns
  3. 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