Building Microservice applications on Docker-Datacenter (DDC) using Docker Compose

Docker-Datacenter (DDC) is targeted for both developers and IT operations team. DDC provides both developers and IT operations a common option for managing containers. Developers create containers using the toolset they’re comfortable with and deliver the resulting containers to the Docker Registry Service. Operations Team then creates rules that describe how resources can be managed to run those containers, so that developers can perform self-service provisioning for their work.

DDC is an end-to-end Docker platform for enterprises. It is built as a tightly integrated enterprise product – the inclusion of Docker Swarm as the default orchestration engine and Universal Control Plane (UCP) – which sits above the Docker Swarm and provides an on-premises container management solution for Docker apps and infrastructure regardless of where your applications are running.

One of the most amazing feature which DDC provides is building Microservices using Docker compose.

If Docker compose is completely new to you, I request you to refer  https://docs.docker.com/compose/overview/ to get started with Docker compose.  In this post, we will look at how DDC provides an easy way to build wordpress applications using Docker compose.

I assume Docker-Datacenter is already up and running. If not, please refer http://collabnix.com/archives/1149 for step by step guide to setup DDC.

Let’s open up the DDC Web UI as shown below:

UCP_Image01

 

Click on Applications tab shown in the left. Click on Compose Application tab.

Pic1

DDC provides a capability to upload docker-compose.yml right from your Desktop. Also, you can manually copy-paste it from your notepad or Linux machine. Click on Create Application and that’s all you need to get your app up and running. Please refer https://github.com/ajeetraina/collabnix-wordpress/blob/master/docker-compose.yml for the complete docker-compose.yml content:

Pic2

Under Docker compose file, we didn’t specified “network” type and hence it chose the default “collabwebapp_default”. There are various ways to specify the network. In case you created an overlay network for multi-host networking, you can add this application or containers under  the pre-existing network through the following entry in docker-compose.yml:

networks:
  default:
    external:
      name: CollabNet

In case you want to specify the custom network driver, the entry should look like as shown below:

networks:
  frontend:
     driver: custom-driver-1
  backend:
     driver: custom-driver-2
    driver_opts:
      collabNet1: “1”
      collabNet2: “2”

 

While your application is being built, you have a close look at the images and containers pulled up and created respectively as shown below:

Pic-3

 

Pic-4

Pic-5

Let’s check the logs of application creation:

Pic-8

Pic-8

Pic-10

Yippee !! Your first application is up and running using Docker Compose. In the future post, we will look at how can we restrict containers to run on the particular UCP client nodes using the affinity feature of Docker Swarm.

14 thoughts on “Building Microservice applications on Docker-Datacenter (DDC) using Docker Compose

  1. This is very serious, you’re collaborating on passing the author. In addition, along with your feed and I actually signed up to your personal unbelievable write ups can enjoy. By the way, we’ve shared our social network in the Journal of the net.

    Managed Network Services Dallas

  2. I am frequently to blogging and i really appreciate your content.

    The article has really peaks my interest. I ‘m going to bookmark your website and
    keep checking for new info.

  3. Everything is very open with a clear description of the issues.

    It was really informative. Your site is extremely helpful.

    Thanks for sharing!

  4. Wonderful article! We are linking to this particularly great article on our website.
    Keep up the good writing.

  5. Goood post annԀ right to the point. I am not sure if this is actuɑlly the best place to ask but do
    you folks have any thoughts onn where to get some prօfessiⲟnal writers?
    Thx 🙂

  6. great set up, very informative. I wonder why another experts on this sector don’t realize this.

    You must continue your writing. I am just sure, you’ve a great readers’ base already!

  7. “Major thanks for the article post.Really looking forward to read more. Will read on…”

  8. “Superb post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit more. Thanks!”

  9. “Thank you, I have recently been looking for info about this topic for a long time and yours is the best I’ve came upon till now. But, what in regards to the conclusion? Are you certain concerning the source?”

Leave a Reply

Your email address will not be published. Required fields are marked *