Skip to content

Instantly share code, notes, and snippets.

@mlabouardy
Created January 5, 2019 13:26
Show Gist options
  • Select an option

  • Save mlabouardy/d05beceba953474984670523aea10088 to your computer and use it in GitHub Desktop.

Select an option

Save mlabouardy/d05beceba953474984670523aea10088 to your computer and use it in GitHub Desktop.
Expose Nexus docker repository on GCP
resource "google_compute_firewall" "nexus" {
name = "nexus-firewall"
network = "${google_compute_network.nexus.name}"
allow {
protocol = "tcp"
ports = ["22", "8081", "5000"]
}
source_ranges = ["0.0.0.0/0"]
}
resource "google_compute_network" "nexus" {
name = "nexus-network"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment