- GCE e2-small with Ubuntu 24.04 + Docker - Static IP, firewall rules, SSD boot disk - Startup script: installs Docker, clones repo, creates .env, starts compose - Outputs: IP, SSH command, API URL, bootstrap command, CLI setup - ~7$/month for always-on server
20 lines
738 B
Text
20 lines
738 B
Text
# Copy to terraform.tfvars and fill in values
|
|
project_id = "your-gcp-project-id"
|
|
region = "europe-west1"
|
|
zone = "europe-west1-b"
|
|
machine_type = "e2-small" # 2 vCPU, 2GB RAM, ~$7/mo
|
|
disk_size_gb = 30
|
|
instance_name = "data-analyst"
|
|
ssh_user = "deploy"
|
|
ssh_public_key_path = "~/.ssh/id_ed25519.pub"
|
|
|
|
# App secrets
|
|
jwt_secret = "" # Generate: python3 -c "import secrets; print(secrets.token_urlsafe(32))"
|
|
|
|
# Keboola (optional — leave empty for sample data)
|
|
keboola_token = ""
|
|
keboola_stack_url = "https://connection.keboola.com"
|
|
keboola_project_id = ""
|
|
|
|
# Domain (optional — leave empty for IP-only access)
|
|
domain = ""
|