Docker Compose – Dockerizing Django MySQL App

In this tutorial I will show you how to dockerize Django MySQL app using docker compose in Linux environment. So why do you need docker compose when you have docker container? Generally it is said to be best practices when each docker container runs a process with single responsibility, but for this application you need two containers – one is for Django app and another one is for MySQL server. Therefore two containers are running independently and to establish communication between two containers you need docker compose.

Continue

Docker Compose – Dockerizing Nodejs MySQL REST API CRUD Example

Introduction In this tutorial I am going to explain you how to use docker compose to dockerize your Nodejs MySQL REST API for CRUD operations. I am not going to tell you here how to build the REST CRUD application but you can always go back and check the detail tutorial on this here. I am only going to show you how to dockerize your app using docker compose in Linux environment. It is a best practice for a container to have only one process with single responsibility. But as…

Continue

Docker Compose – Dockerizing Spring Boot Microservices MySQL App

Introduction Here I am going to show you how to use docker compose for dockerizing Spring Boot Microservices MySQL app. Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. You know that it is a best practice for a container to have only one process with single responsibility. But as I am going to dockerize Spring Boot Microservices app and MySQL…

Continue

Docker Compose – Dockerizing Flask MySQL App

Introduction It is considered to be a best practice for a container to have only one process with single responsibility. But as I am going to dockerize Python based Flask web app and MySQL server for storing data for the app, so I need two containers – one for running the app and another one for running the MySQL database server. So these two containers are running independently and to establish communication between these two containers you need docker compose. I am also going to show you how to install…

Continue

How to Create, Build, Package and Run Python Flask Application with Docker

Introduction In this tutorial I am going to show you how to create a simple Python Flask REST API in Linux based CentOS 7 system. Then I am going to show you how to build, package and run this Python Flask application with Docker. Here I am creating an endpoint that returns Hello, World! in JSON format. In my other tutorial I had discussed how to install docker on CentOS 7. I am not going to tell you here why do you need docker but you can read it from my previous…

Continue

Create, Build, Package and Run Spring Boot Application with Docker in CentOS 7

Introduction Here in this tutorial I am going to show you how to create a simple Spring Boot application. Then how to build, package and run this Spring Boot application with Docker in Linux environment (CentOS). I am going to use both gradle and maven as build tools for running build on this Spring Boot application. In my previous tutorial I had discussed how to install docker on CentOS 7. I am not going to tell you here why do you need docker but you can read it from my…

Continue

How to install Docker on CentOS 7

Introduction I am going to show you how to install docker in Linux platform, the operating system I am using here is CentOS 7 64 bit architecture. In my previous tutorial I had shown how to install docker on Windows 7 operating system. Docker is a container, more like a virtual machine, portable, resource friendly and dependent on the host operating system. Using docker makes an application simple and easy to run in a container.

Continue

How to install Docker in Windows 7 Operating System

Introduction This tutorial will show you how to install Docker in Windows 7 operating system. Docker, from Wikipedia, is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. So why do you need docker? It allows developers to create a portable application that could be run on every machine. Instead of delivering jar, war, ear or…

Continue