Deploying Applications to gridscale using Registered Servers

Today we are going to show you how to deploy to using Registered Servers feature.

We take you by the hand to deploy a Docker, Rails or Node project under 5 minutes including load balancing, Let’s Encrypt SSL and all the cool feature we support.

As you might know, we integrate with all the major cloud providers and we love it. A lot of our customers, due to legislation or other legal issues, need to deploy their applications on servers which are running physically in their own country and also owned and operated by local companies.

Unfortunately, not all supported public cloud providers can comply with those rules. We provide a feature called Registered Servers to make this happen.

What? Registered Servers?


Great. Let’s see how to get this thing going using

Let do this!

  • Cloud 66 account — signup here for a two-week free trial account.
  • gridscale account — signup here with a start credit of €10.

We are going to deploy a Docker Project with one load balancer, a two server docker cluster and a separated DB server. We need to provision 4 servers for this example.

NOTE: The following steps can also be used to deploy a Rails or Node project.

Provision the nodes

Provision the loadbalancer

Make sure the option connect to the internet is enabled. It’s worth to note that Cloud 66 takes care of all the firewalling and security when we are going to manage your hosts.

Choice a storage and make sure your choice Ubuntu 16.04(LTS) image.

Set the root password to easily can access. When Cloud 66 is deploying to your servers, a firewall will be installed and also SSH access only works with public/private key access and is closed by default to the outside world.

Hit Create Server to create the server.

Our first server is created. But is not started yet. Make sure you start your servers.

Provision the Docker nodes

If your services need persitency, choice a larger disk size.

Provision the Database node

Bring them to Cloud 66

Now it’s time to log into your Cloud 66 account. Before we create any project, make sure we put our gridscale servers into our inventory. Go to the Register Server panel and you find a command to run on each server to bring them on board.

SSH to each server and login with your root and password you set in the gridscale UI. You can find the IP on the dashboard, when you hit the IP it will automagically copied to you clipboard.

~$ ssh

When you got access to your server the installation needs curl to run the command to register this server. Execute the following commands:

Update the package registry
root@cloud66dockernode2:~# apt update

Install curl
root@cloud66dockernode2:~# apt install curl

Run the Cloud 66 register server command
root@cloud66dockernode2:~# curl -s | bash -s

When the command is executed, you see the following message.

Approve the servers

You can also tag the server to make them easy findable if you deploy a stack.

Create a Docker project

We choice dockernode1 from the registered servers.

And we add another server for our MongoDB database. Of course one of our Docker services need access to the internet. Cloud 66 gives you a UI to set the port mapping and take care of all the load balancing and firewall management.

Hit deploy stack and Cloud 66 will provision the servers and start building and deploying your application. You get an e-mail when Cloud 66 is done setting up your application.

Scale up!

Go to the Docker cluster and hit the button Add Docker Server. Choice the right registered server and hit Add. Cloud 66 will provision this server and add this one to the Docker cluster and make sure all the intra-service networking is setup and secure.

Last but not least, we need a load balancer. Hit the link Scale up your site — add a load balancer and choice the last remaining server. Hit Add Loadbalancer and let Cloud 66 do all the heavy lifting. When this is done! Point your traffic to the load balancer. Happy scaling!


The combination Cloud 66 and gridscale give you the power of DevOps right in your hand still comply with all the German legislation or legal issues.

Originally published at on January 24, 2017.

DevOps-as-a-Service to help developers build, deploy and maintain apps on any Cloud. Sign-up for a free trial by visting: