Basics of D2C

Why D2C?
About

D2C platform helps developers to configure, deploy and manage applications.
We use:
- Docker. To run services.
- Ansible. To automate tasks.
- Weave Network. To create private network between containers and communication of services in private network.
- Telegraf. To collect logs.
- D2C HealthCheack Daemon. To recieve statuses of hosts and containers.
Projects

Project is a folder for your services. You can create any amount of projects.
Hosts

There are two kinds of servers: created on public cloud providers and your owns which are connected via SSH to D2C.
One host can be used for different projects at one time.
Services

Service is an application. There are three kinds of services:
- Data Services (MongoDB, MariaDB, MySQL, Percona, PostgreSQL, Redis, Crate, Memcached, ElasticSearch
- Application services (Node.js, Python, Go, Ruby, PHP-FPM, Apache+PHP)
- Other services (NGINX, NGINX Cluster, NGINX+Static, Docker)

When you deploy the application we put it in Docker container
Services

Service is an application. There are three kinds of services:
- Data Services (MongoDB, MariaDB, MySQL, Percona, PostgreSQL, Redis, Crate, Memcached, ElasticSearch
- Application services (Node.js, Python, Go, Ruby, PHP-FPM, Apache+PHP)
- Other services (NGINX, NGINX Cluster, NGINX+Static, Docker)

When you deploy the
5. Choose the app(s) Nginx will maintain
6. On the next step you can choose protocol: HTTP or HTTPS. D2C supports Let's Encrypt free SSL certificates so we'll show how it works.
7. Click "Generate config"
8. The app will receive a domain, like appname-www.appid.at.d2c.io.
You can add additional domains. Ensure that DNS-record for additional domains has the same IP-address as a host of Nginx.
If you use AWS but not Elastic IP it's better to add CNAME-record:
E.g example.com
With the value appname-www.appid.at.d2c.io.
Choose Let's Encrypt certificates or upload your own. You can edit config if it needs it.
9. Choose host and click "Creat service"
That's all! Check the Domain field at the service page.
Made on
Tilda