Skip to content

Docker Compose based Project build using ASP.NETcore CRUD operation web application and using Nginx as Loadbalancer

Notifications You must be signed in to change notification settings

sushantjadhav416/Docker_compose-Asp-web_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker-Compose based Project build using ASP.NETcore CRUD operation web application and using Nginx as Loadbalancer

  • In This project we are using ASP.NETcore based web application to demonstrate the Docker compose Tool for multicontainer Management.
  • So what is docker compose? so , Docker compose is tool for defining and running multi-container Docker applications. with compose we use a yaml file to configure our application services.
  • Compose is work on all envirenment production , staging development, testing as well as workflow also.
  • The key feature's of docker compose :
    1. Have Multiple isolated environment on a single host .
    2. Preserve volume data when container are created .
    3. Only recreate's the container that have changed .
    4. Supports variables and moving a composition between environments.

Project setup-

  • First , clone this repository to your system.
  • I have coded the docker-compose file in .yaml format.
  • So type docker-compose Up command to start application.
  • In this project we are using flask based Wed API , Nginx server and redis as a backend server.

Use of Nginx server to enable scaling in docker compose

  • We are using nginx web servers as loadbalancer for scaling of our application.
  • For this task we have to setup a nginx.conf file.
  • After compliting the setup follow below command docker-compose scale web=5
  • Here web is name off a service and 5 number of containers to be scaled.
  • Here the Nginx act as proxy server to allow our application to scale.

About

Docker Compose based Project build using ASP.NETcore CRUD operation web application and using Nginx as Loadbalancer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages