giansalex / aspnetcore-load-balancing

ASP.NET Core 6.0 - Load Balancing with Nginx | Traefik | Caddy - Alpine - Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASP.NET Core HTTPS & Load balancing

Deploy an ASP.NET Core application with HTTPS & Load balancing using Docker.

Nginx

Using Nginx web server.

docker-nginx

To get started:

git clone https://github.com/giansalex/aspnetcore-load-balancing.git
cd aspnetcore-load-balancing
docker-compose build
docker-compose up -d --scale core-app=4 --no-recreate

IMPORTANT: Due to NGINX (Free version) limiations, current configuration is set to work with a fixed scale of 4 nodes. With NGINX Plus, additional changes might be applied to scale up and down dynamically.

Traefik

Using Traefik Edge Router.

git clone https://github.com/giansalex/aspnetcore-load-balancing.git
cd aspnetcore-load-balancing
docker-compose -f docker-compose.traefik.yml build
docker-compose -f docker-compose.traefik.yml up -d --scale core-app=4

Caddy

Using Caddy Server web server.

git clone https://github.com/giansalex/aspnetcore-load-balancing.git
cd aspnetcore-load-balancing
docker-compose -f docker-compose.caddy.yml build
docker-compose -f docker-compose.caddy.yml up -d --scale core-app=4 --no-recreate

Browser

Navigate to https://localhost

app-on-browser

About

ASP.NET Core 6.0 - Load Balancing with Nginx | Traefik | Caddy - Alpine - Docker

License:MIT License


Languages

Language:HTML 45.8%Language:CSS 26.4%Language:C# 17.5%Language:Dockerfile 7.7%Language:Batchfile 1.3%Language:Shell 1.2%