Skip to content

Commit

Permalink
Merge pull request #17 from a-company-jp/full-cloudrun-configration
Browse files Browse the repository at this point in the history
🔧 update cloudrun configuration
  • Loading branch information
Shion1305 authored Apr 14, 2024
2 parents 5046cb0 + 4a15553 commit 46ead6a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions envs/dev/cloudrun.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,30 @@ resource "google_cloud_run_service" "cloudrun-dev-main-backend" {
template {
spec {
containers {
name = "nginx"
image = "asia-northeast1-docker.pkg.dev/${var.project_id}/dev-main/nginx:latest"
ports {
container_port = 80
}
}


containers {
name = "backend"
image = "asia-northeast1-docker.pkg.dev/${var.project_id}/dev-main/backend:latest"
env {
name = "PORT"
value = "8080"
}
}

containers {
name = "frontend"
image = "asia-northeast1-docker.pkg.dev/${var.project_id}/dev-main/frontend:latest"
env {
name = "PORT"
value = "3000"
}
}
}
}
Expand Down

0 comments on commit 46ead6a

Please sign in to comment.