feat: Add Terraform configuration for GCP infrastructure and Docker setup

This commit is contained in:
jon brookes 2025-09-08 12:15:29 +01:00
parent 94499fd16e
commit 538fed9a66
10 changed files with 283 additions and 0 deletions

17
gcloud/tf/firewall.tf Normal file
View file

@ -0,0 +1,17 @@
// Firewall
// ----------------------------------
resource "google_compute_firewall" "allow_http" {
name = "allow-http"
network = "default"
allow {
protocol = "tcp"
ports = [
"80", "443", // http/https
"30080" // ports opened to access the python API via NodePort
]
}
source_ranges = ["0.0.0.0/0"]
target_tags = ["web"]
}