Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

hosting multiple websites on Run

Hey guys,

I want to host multiple websites which are stored in different repositories on Github.
I would like to know if it is possible to create an docker container witch hosts those websites using apache2. The websites are written in PHP, HTML, CSS & Javascript.

Thank you in advance,

Solved Solved
0 1 235
1 ACCEPTED SOLUTION

Yes, the easiest way is to use a Cloud Build trigger to update it when a commit is performed. Here is steps with Cloud build and source repos Continuous deployment from Git using Cloud Build  |  Cloud Run Documentation  |  Google Cloud to use a github webhook - see step 3. You'll want to use environment variables in your app.yaml and put thier values on the Cloud Build trigger 

View solution in original post

1 REPLY 1

Yes, the easiest way is to use a Cloud Build trigger to update it when a commit is performed. Here is steps with Cloud build and source repos Continuous deployment from Git using Cloud Build  |  Cloud Run Documentation  |  Google Cloud to use a github webhook - see step 3. You'll want to use environment variables in your app.yaml and put thier values on the Cloud Build trigger 

Top Solution Authors