docker load balancing on two different server - docker

Is it possible to have docker installed on two servers and then using azure DevOps server, deploy the asp.net core Publish to the both servers?
If yes, I think, I need to have local registry on both servers. Then using docker-compose push the images to servers.
Am I right?
Any help would be appreciated

Related

Deploy and manage workload both on local machine and cloud

How can I can deploy and manage workload both on cloud and local machine or split workload between on-premise and cloud. Here you can assume on-premise to be your local laptop.
I want a method /software /platform which can run Kubernetes pods/workload both on local machine and cloud.
I found AWS outpost as one of them but I think it works only on-premise. It cannot deploy workload on AWS and also very less information is available about it .
Please help me with this problem.
You are looking for k8s hybrid cloud mechanism. you can check for google anthos, nutanix etc

How do you deploy multiple services on AWS Copilot at once?

I'm new to AWS Copilot and containers in general (frontend focused engineer helping out with DevOps at my job) and am trying to figure out how to deploy multiple containers at once. The project includes a web container, deployed through copilot as a Load Balanced Web Service, and a worker container, deployed as a Backend Service. The two containers share a code base, so when I update one, I need to update the other, especially when there is a database migration. When I do a copilot deploy, however, it seems to only give the option to choose one service. How would I synchronize the deployment?
You can deploy the two services in parallel by using Copilot's pipelines feature. Tons of info here: https://aws.github.io/copilot-cli/docs/concepts/pipelines/ ... let us know if you have more questions not answered by the docs!
Thanks!

How to design & Implement containerize architecture for nginx with reactjs and laravel with mongo?

I'm using reactjs for frontend with Nginx load balancer and laravel for backend with MongoDB.
as old architecture design, code upload to GitHub with different frontend and backend repo.
still did not use DOCKER AND KUBERNETS, I want to implement them, in the new Architecture design, I used a private cloud server so, restricted to deploying on AWS\AZURE\GCP\etc...
share your Architecture plan and implementation for a better approach to microservices!
as per my thinking,
first make a docker file for react and laravel project
then upload to docker private registry.[dockerhub]
install docker and k8s on VM
deploy container of 1=react and 2=laravel from image
also deploy 3=nginx and 4=mongo container from default market image
Some of my questions:
How to make the connection?
How to take a new pull on the container, for the new update release version?
How to make a replica, for a disaster recovery plan?
How to monitor errors and performance?
How to make the pipeline MOST important?
How to make dev, staging, and production environments?
This is more of planning question, more of the task can be automated by developer/devops, except few administrative task like monitoring and environment creation.
still this can be shared responsibility. or if team is available to manage product/services.
You can use gitlab, which can directly attach to kub8 provider. Can reduce multiple build steps.

How can I use Docker Hub for .Net Core projects despite a US-sanctions block?

I am from Iran. Because of sanctions from US it is very hard to use Docker in my server. But we really need to use micro-service, as times goes on our project is getting bigger and bigger and we need to think of some thing to manage the complexity.
I can't connect to Docker Hub from my server in Iran, so I need to set up proxy every time I want to pull project from Docker Hub. That period my server will not respond to users. It is funny that one of reasons I want to promote the system (by .net core and microservice and Docker and ...) is to avoid issues on server like being down or inactive.
Could I solve this by looking at alternatives to Docker in .net core ?
docker != microservice.
Docker helps you deploying multiple services on an orchestrator (e. g. Kubernetes) but you can also deploy your monolith in a single docker container....
Depending on where you want to deploy your application, you can use a Framework / Programming Model like Azure ServiceFabric or you just create multiple ASP.NET Core Web Apps that represents your microservices and deploy them to an IIS. In case of the later, you probably want some kind of API Gateway in place so the client (your MVC application) doesn't need to know each endpoint URL.
The solution for my problem is to use docker along with registry docker (docker-hub) which both are open-source. This solves my sanctions limitation problem.

How multiple docker containers can be used on Heroku?

I want to use two containers Golang web server and Mysql Database.
And then I prepared two Dockerfiles and pushed on Heroku.
However web server can not be connected to mysql server.
How is link set from web server to mysql??
Thanks!
You can't link containers in Heroku unless you use the DockHero plugin there (which costs you money), so that you can use Docker Swarm. In your case it would be better just to use the ClearDB MySQL plugin they provide, and only deploy the first container.

Resources