Skip to content

Containerize a 3-tier node.js application with Docker

Notifications You must be signed in to change notification settings

Memal7/docker-container

Repository files navigation

Containerization of a 3-tier application with Docker

This repo demonstrates containerization of a 3-tier node.js application with Docker and Docker-Compose.

In addition the Cheatsheet explains some fundamental aspects of Docker containers such as create and manage container images and how to create, manage, and operate container instances.


Pre-requisites

Docker (e.g. Docker Desktop)


Quick Start

To build all 3 containers at once from docker-compose.yml, run the following command:

docker-compose up .

Otherwise, start with the Cheatsheet first and try to understand what each command does. Then look at the Dockerfiles in api folder and client folder and also understand what each instruction does in the Dockerfiles.


Reference