Skip to content

Commit

Permalink
add google cloud md file
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergori committed Oct 24, 2018
1 parent 6b7c26f commit 951a3a5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions GoogleCloudDeployment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Google Cloud deployment

This setup is similar to the [Docker Deployment](DockerDeployment.md), except that the `docker-compose` is hosted by Google Cloud.

## Google Cloud shell setup

Google Cloud is alternative way to set up BTCPayServer.

Start by clicking the following button:

[![Open in Cloud Shell](http://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https%3A%2F%2Fgithub.com%2Fbtcpayserver%2Fbtcpayserver-googlecloud&page=editor)

You can log into [Google Cloud Console](https://console.cloud.google.com) with your Google account.

Final installation steps:

* On Google cloud shell, Set the default project and zone where to deploy instance
* Change yaml file to configure VM instance and BTCPay server: ![GCE and BTCPay Config](img/gcloud-yaml.png)
* Change mode 755 for shell scripts and run 'deploy.sh \<any deployname\>' to start depolyment
* (Wait for Google Cloud deployment for a minute)
* A static IP is shown on the google cloud shell
* Go to your DNS service and map it with your domain name, say EXAMPLE.MYSITE.com
* ssh to the vm from Google cloud console's VM instances list
* on ssh, Go to /btcpayserver-docker directry and run 'changedomain.sh EXAMPLE.MYSITE.com'
* Access to https://EXAMPLE.MYSITE.com by browser
* Click 'Register' and create an account - This will be your **admin** account!
* **Done!** Visit `https://EXAMPLE.MYSITE.com/stores` to create your store and begin invoicing.

For advanced users, you can connect via SSH with the information on `https://EXAMPLE.MYSITE.com/server/services/ssh`, and:

* Run `docker ps` and `docker logs xxx` to view running processes
* Run `btcpay-down.sh` and `btcpay-up.sh` to stop and start the BTCPayServer

Approximate Cost : **70 USD per month**

Learn more: [btcpayserver/btcpayserver-googlecloud](https://github.com/btcpayserver/btcpayserver-googlecloud)
Binary file added img/gcloud-yaml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 951a3a5

Please sign in to comment.