Services can not run without a server on the Internet. D2C can automatically provide servers for you. Just provide an access token for your preferred cloud provider, and D2C will create/destroy/resize servers as you need them. Keep in mind that the cloud provider will charge you for resource usage based on your payment plan. D2C does not provide its own computing resources – it automates the provisioning process at cloud providers.
If you want to deploy services on your own in-house servers or at cloud providers that D2C does not currently support, you can do so. We provide a script that checks whether your host complies with the requirements to be added to the D2C dashboard and be a part of your project.
Each host can be used for any project multiple times.
Supported operation systems and requirements¶
When you create a host, we install Ubuntu 16.04 on it.
When you connect your own host it should have:
- Ubuntu 14.04/16.04 or Debian 8/9.
- Kernel version >= 4.0 for better Docker performance using OverlayFS, otherwise, the storage driver will be “devicemapper”
- Free disk space: 5 Gb
- Opened incoming SSH port
- For the Weave network to work, you must open ports 6783, 6784 (TCP/UDP)
- hostname should be unique and cannot be named as “localhost”
D2C does not support hosts with installed Docker to prevent any configuration conflicts.
How to connect own host¶
- Sign in into your D2C account.
- Click Connect host
- Copy the command
- Connect to your host via SSH
- Run the command you copied before
Supported hosting providers¶
- Amazon Web Services (how to link AWS)
- DigitalOcean (how to link DigitalOcean)
- Vultr (how to link Vultr)
Will be available soon:
- Microsoft Azure
What software will be installed on hosts?¶
- Weave Network
- D2C HealthCheck Daemon
- Stop (Start)
- Update system services (Docker, Weave, Telegraf)
- Destroy (+force destroy)
- Instance Resize (only for cloud hosts)
- Volume Resize (for AWS hosts)
Amazon EC2 provides additional storage which calls Amazon Elastic Block Storage (EBS). You can add additional EBS without stops of hosts.
You can create a demo host for testing the platform. The configuration of demo hosts is t2.micro (1 GB, 1 x 2.4 GHz, 4GB SSD). Region: N. Virginia, The United States
Demo host creates for one hour and will be destroyed (with all services and containers) after this time expired. You can create another one after that.
You can find a + Free demo host button on the creating service page.
Each host has logs (server logs).
The line which has ellipsis marks, in the end, can be opened with a mouse click.
Connecting via SSH and SFTP¶
One public key should be used only once regardless of its type (SSH or SFTP). If you need to change a method of connection, you need to create another public key or replace the old one.
Open a terminal of a host and execute following commands using your keys.
SSH_KEY="your public key" echo $SSH_KEY >> ~/.ssh/authorized_keys
SSH_KEY="your public key" echo "restrict,command=\"sudo /usr/lib/openssh/sftp-server -d /ebs/containers\" $SSH_KEY" >> ~/.ssh/authorized_keys
All data of services are stored in:
For example, you can find sources in:
How the host page looks like¶