- Notifications
You must be signed in to change notification settings - Fork17
ASP.NET Core 6.0 - Load Balancing with Nginx | Traefik | Caddy - Alpine - Docker
License
NotificationsYou must be signed in to change notification settings
giansalex/aspnetcore-load-balancing
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Deploy an ASP.NET Core application with HTTPS & Load balancing using Docker.
UsingNginx web server.
To get started:
git clone https://github.com/giansalex/aspnetcore-load-balancing.gitcd aspnetcore-load-balancingdocker-compose builddocker-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.
UsingTraefik Edge Router.
git clone https://github.com/giansalex/aspnetcore-load-balancing.gitcd aspnetcore-load-balancingdocker-compose -f docker-compose.traefik.yml builddocker-compose -f docker-compose.traefik.yml up -d --scale core-app=4
UsingCaddy Server web server.
git clone https://github.com/giansalex/aspnetcore-load-balancing.gitcd aspnetcore-load-balancingdocker-compose -f docker-compose.caddy.yml builddocker-compose -f docker-compose.caddy.yml up -d --scale core-app=4 --no-recreate
Navigate tohttps://localhost
About
ASP.NET Core 6.0 - Load Balancing with Nginx | Traefik | Caddy - Alpine - Docker