Skip to main content

Cloud Run Deployment

Sentry Analytics runs on Google Cloud Run for production deployment.

🚀 Quick Deploy

# Build and push Docker image
gcloud builds submit --project=sentry-analytics-prod \
--tag=gcr.io/sentry-analytics-prod/sentry-app:latest

# Deploy to Cloud Run
gcloud run deploy sentry-app \
--project=sentry-analytics-prod \
--region=europe-west6 \
--image=gcr.io/sentry-analytics-prod/sentry-app:latest \
--platform=managed \
--allow-unauthenticated

📦 Infrastructure

ComponentServiceRegion
Backend APICloud Runeurope-west6 (Zurich)
DatabaseCloud SQL PostgreSQLeurope-west6
AI ServicesVertex AIeurope-west4
SecretsSecret Managerglobal
StorageCloud Storageeurope-west6

⚙️ Environment Variables

VariableDescriptionSource
DATABASE_URLPostgreSQL connectionSecret Manager
GOOGLE_CLOUD_PROJECTGCP project IDEnvironment
AI_LOCATIONVertex AI regionEnvironment
AGENT_API_KEYAI Agent API keySecret Manager

🔧 Cloud Run Configuration

# Service configuration
memory: 512Mi
cpu: 1
minInstances: 0
maxInstances: 10
timeout: 300s
concurrency: 80

📊 Monitoring

  • Cloud Logging - All request/response logs
  • Cloud Monitoring - CPU, memory, request metrics
  • Error Reporting - Automatic error tracking
  • Uptime Checks - Health endpoint monitoring

🔐 Security

  • IAM - Service account with minimal permissions
  • Secret Manager - All secrets managed securely
  • HTTPS Only - All traffic encrypted
  • VPC Connector - Private Cloud SQL access

🌍 Custom Domain

Production URL: https://sentryanalytic.com

Domain mapping via Cloud Run domain mappings.

🔄 CI/CD

GitHub Actions workflow:

  1. Push to master branch
  2. Build Docker image
  3. Push to Container Registry
  4. Deploy to Cloud Run
  5. Health check verification

See Docker Guide for containerization details.