#Docker, #DockerSwarm, #Microservices Hello Friends, Welcome back to my channel and I am very pleased to share this tutorial on deploying multi node application in docker swarm. In my last 2 tutorials we have seen how to setup docker swarm with 1 manager and 2 workers, and also how to create services in docker swarm. In this video we will be creating multiple services which are running on different nodes and the end we will be able to see how our application works. If you haven't subscribed to my channel, kindly do so, like the video and provide your comments.
We are going to use the docker sample application Voting App. I have given the link for the github location in the video description. The link have the docker compose file for the application to run, however we are going to do it manually by creating multiple docker services. The application itself have a front end and back end architecture. The front ent webapp which lets you vote between two options, we call it as vote app. A redis queue, A worker which is connection between front end and backend. The worker consumes the votes and stores in it. We are going to use a Postgres Database with docker volume to store the data. and the last one is the result app which will display voting. The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client.
docker network create -d overlay frontend_ntw
docker network create -d overlay backend_ntw
docker service create --name votingapp -p 5000:80 --network frontend_ntw --replicas 3 dockersamples/examplevotingapp_vote:before
docker service create --name redis --network frontend_ntw --replicas 3 redis:3.2
docker service create --name worker --network frontend_ntw --network backend_ntw dockersamples/examplevotingapp_worker:latest
docker service create --name db --network backend_ntw -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres --mount type=volume,source=db-data,target=/var/lib/postgresql/data postgres:9.4
docker service create --name resultapp --network backend_ntw -p 5001:80 dockersamples/examplevotingapp_result:before
https://github.com/dockersamples/exam...
=================================================
Follow me @:
/ thetips4you
https://www.youtube.com/channel/UCoOq...
/ thetipsforyou
http://www.thetips4you.com
======================================================
Note: Each word by Word or sentences used in this video is self written and converted to Audio to give explanation on the steps in each tutorial . These are not automated or third party content or scrapped from any website.
Music credit: "Royalty Free Music from Bensound"
Смотрите видео Docker Swarm MicroServices | Deploy Multi Service Multi Node Voting App онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Thetips4you 11 Март 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,362 раз и оно понравилось 70 людям.