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
| Component | Service | Region |
|---|---|---|
| Backend API | Cloud Run | europe-west6 (Zurich) |
| Database | Cloud SQL PostgreSQL | europe-west6 |
| AI Services | Vertex AI | europe-west4 |
| Secrets | Secret Manager | global |
| Storage | Cloud Storage | europe-west6 |
⚙️ Environment Variables
| Variable | Description | Source |
|---|---|---|
DATABASE_URL | PostgreSQL connection | Secret Manager |
GOOGLE_CLOUD_PROJECT | GCP project ID | Environment |
AI_LOCATION | Vertex AI region | Environment |
AGENT_API_KEY | AI Agent API key | Secret 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:
- Push to
masterbranch - Build Docker image
- Push to Container Registry
- Deploy to Cloud Run
- Health check verification
See Docker Guide for containerization details.