Building Docker compose for Application

Understand Full Stack Application Architecture and Development
Learn ERD development with Mysql (TypeORM with Nestjs)
API development in node js
Auth and Authz using firebase and auth0
Caching using Redis
CMS using strapi and many more
Its full Stack development approach on architecture side

#docker #node #firebase #programming #developer

What is GEEK

Buddha Community

Building Docker compose for Application
Iliana  Welch

Iliana Welch


Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub

In this video lesson you will learn:

  • What is Docker Host
  • What is Docker Engine
  • Learn about Docker Architecture
  • Learn about Docker client and Docker Daemon
  • Docker Hub and Registries
  • Simple demo to understand using images from registries

#docker #docker hub #docker host #docker engine #docker architecture #api

Hayden Slater


Docker: Define, Build and Run

In this blog post, I’m going to share my experience with using docker to create a container for my application.

What is Docker?

Docker is an open platform for developing, shipping, and running applications. It packages up an application or service with all of its dependencies into a standardized unit a.k.a “Image”

Why use Docker?

There are a lot of individual machines and VM running with different OSes and it’s hard to stay up to date with the operating systems as well as their dependencies. This is where Docker shines and solves that problem. Docker streamlines the development lifecycle by providing standardized environments using local containers.

#cloud #docker #docker-compose #docker-build #software-development

Iliana  Welch

Iliana Welch


Docker Tutorial for Beginners 8 - Build and Run C++ Applications in a Docker Container

Docker is an open platform that allows use package, develop, run, and ship software applications in different environments using containers.
In this course We will learn How to Write Dockerfiles, Working with the Docker Toolbox, How to Work with the Docker Machine, How to Use Docker Compose to fire up multiple containers, How to Work with Docker Kinematic, Push images to Docker Hub, Pull images from a Docker Registery, Push stacks of servers to Docker Hub.
How to install Docker on Mac.

#docker tutorial #c++ #docker container #docker #docker hub #devopstools

Franz  Bosco

Franz Bosco


Install Docker | Docker Compose on Ubuntu 20.04

This brief tutorial shows students and new users how to install Docker and Docker Compose on Ubuntu 20.04 | 18.04.

Docker software allows visualization at the operating system level… Unlike VirtualBox and VMware Workstation, you run virtual applications as containers… Docker was developed by Docker Inc, and runs software packages as containers which makes building applications that are easily shared and can run anywhere…

#applications #linux ubuntu #docker #docker compose #ubuntu 18.04

Loma  Baumbach

Loma Baumbach


Deploy a Tomcat Application Using Docker-Compose

In this blog, we will learn what is docker-compose and how we can deploy a tomcat application which uses mysql database. We will learn how we can setup a development environment using docker-compose in a single command


  1. Docker and Docker-compose installed


  • Docker-compose is a tool which is used to deploy multi-container application.
  • One single yaml file to deploy your application on the server.
  • Best suited for the developers to setup their workstation in a single command without installing any kind of dependencies for the application
  • docker-compose up to start your application
  • docker-compose down to clean up all the docker containers

Let’s take an example here:

We have a project called user registration which uses mysql for storing the data . In terms of microservices, we can say that we have two services as shown below:

  • Web Service
  • Database Service

You can clone this git repo and try the below example

Explanation of docker-compose

  1. **version : **This is the version as per the docker engine you have installed on your machine
  2. **services: **This is the main tag which is used to configure multiple services and under that we have details of all the services

3. web: This is our service name -> using image, ports and volumes

4. **volumes: **To store the database files

Now we will create main docker-compose file which will together launch a tomcat, mysql and phpmyadmin container

Tomcat container — To run your application

**Database container **— To store the data

PhpMyAdmin — Access the database through GUI

So we will have three services

  1. db — we are using local path to store the data so that when you run docker-compose down all your data will retain. If you use the volume then all data will get lost if you run the docker-compose down

Also, we are importing sql file so that our database is ready with the sample data. It is good so that each developer will always have the base or the actual data to run their application on the local machine

2. phpmyadmin — which is used to access the database through GUI and it depends on service db

3. web — which is used to access your web application and it also depends on service db

version: '3.3'
     image: mysql:5.7
       - /opt/test:/var/lib/mysql
       - ./mysql-dump:/docker-entrypoint-initdb.d
       MYSQL_DATABASE: testdb1
       MYSQL_USER: testuser
       MYSQL_PASSWORD: root
       - 3306:3306
      - db
    image: phpmyadmin/phpmyadmin
      - '8081:80'
      PMA_HOST: db
      - db
    image: tomcat
      - ./target/LoginWebApp-1.war:/usr/local/tomcat/webapps/LoginWebApp-1.war
      - '8082:8080'
      MYSQL_DATABASE: testdb1
      MYSQL_USER: testuser
      MYSQL_PASSWORD: root

#docker-compose #docker-image #docker