SlideShare a Scribd company logo
1 of 10
Download to read offline
ทำ Microservices แบบขำๆ
กับ Docker Swarm
Kan Ouivirach
www.prontotools.io
Front-end
Component 1 Component 2 Component 3
Service 1 Service 2 Service 3
HTTP HTTP HTTP
Frond-end for Microservices
Component 4
Service 4
HTTP
docker build -t bangkok:unstable -f bangkok/Dockerfile bangkok
docker build -t munich:unstable -f munich/Dockerfile munich
docker build -t tokyo:unstable -f tokyo/Dockerfile tokyo
docker build -t nyc:unstable -f nyc/Dockerfile nyc
docker build -t front_gateway:unstable -f front_gateway/Dockerfile
front_gateway
docker swarm init
docker network create -d overlay swarm101
docker build -t tokyo:1 -f tokyo/Dockerfile tokyo
docker service update --image tokyo:1 tokyo
https://github.com/zkan/microservices-with-swarm-101

More Related Content

More from Kan Ouivirach, Ph.D.

WordPress Hooks: The Right Way to Extend Your WordPress
WordPress Hooks: The Right Way to Extend Your WordPressWordPress Hooks: The Right Way to Extend Your WordPress
WordPress Hooks: The Right Way to Extend Your WordPressKan Ouivirach, Ph.D.
 
Lesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at ProntoLesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at ProntoKan Ouivirach, Ph.D.
 
หัดเขียน A.I. แบบ AlphaGo กันชิวๆ
หัดเขียน A.I. แบบ AlphaGo กันชิวๆหัดเขียน A.I. แบบ AlphaGo กันชิวๆ
หัดเขียน A.I. แบบ AlphaGo กันชิวๆKan Ouivirach, Ph.D.
 
What We Do in This Weird Office Culture
What We Do in This Weird Office CultureWhat We Do in This Weird Office Culture
What We Do in This Weird Office CultureKan Ouivirach, Ph.D.
 
Exploring Machine Learning in Python with Scikit-Learn
Exploring Machine Learning in Python with Scikit-LearnExploring Machine Learning in Python with Scikit-Learn
Exploring Machine Learning in Python with Scikit-LearnKan Ouivirach, Ph.D.
 
Thailand Hadoop Big Data Challenge #1
Thailand Hadoop Big Data Challenge #1Thailand Hadoop Big Data Challenge #1
Thailand Hadoop Big Data Challenge #1Kan Ouivirach, Ph.D.
 
Achieving "Zero Downtime Deployment" with Automated Testing
Achieving "Zero Downtime Deployment" with Automated TestingAchieving "Zero Downtime Deployment" with Automated Testing
Achieving "Zero Downtime Deployment" with Automated TestingKan Ouivirach, Ph.D.
 
Practical Experience in Automated Testing at Pronto Marketing
Practical Experience in Automated Testing at Pronto MarketingPractical Experience in Automated Testing at Pronto Marketing
Practical Experience in Automated Testing at Pronto MarketingKan Ouivirach, Ph.D.
 
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...Kan Ouivirach, Ph.D.
 
Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...
Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...
Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...Kan Ouivirach, Ph.D.
 
Adapting Scrum to Managing a Research Group
Adapting Scrum to Managing a Research GroupAdapting Scrum to Managing a Research Group
Adapting Scrum to Managing a Research GroupKan Ouivirach, Ph.D.
 

More from Kan Ouivirach, Ph.D. (18)

WordPress Hooks: The Right Way to Extend Your WordPress
WordPress Hooks: The Right Way to Extend Your WordPressWordPress Hooks: The Right Way to Extend Your WordPress
WordPress Hooks: The Right Way to Extend Your WordPress
 
Lesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at ProntoLesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at Pronto
 
หัดเขียน A.I. แบบ AlphaGo กันชิวๆ
หัดเขียน A.I. แบบ AlphaGo กันชิวๆหัดเขียน A.I. แบบ AlphaGo กันชิวๆ
หัดเขียน A.I. แบบ AlphaGo กันชิวๆ
 
Agile and Scrum Methodology
Agile and Scrum MethodologyAgile and Scrum Methodology
Agile and Scrum Methodology
 
Machine Learning at Geeky Base 2
Machine Learning at Geeky Base 2Machine Learning at Geeky Base 2
Machine Learning at Geeky Base 2
 
Machine Learning คือ? #bcbk
Machine Learning คือ? #bcbkMachine Learning คือ? #bcbk
Machine Learning คือ? #bcbk
 
What We Do in This Weird Office Culture
What We Do in This Weird Office CultureWhat We Do in This Weird Office Culture
What We Do in This Weird Office Culture
 
The WordPress Way
The WordPress WayThe WordPress Way
The WordPress Way
 
Exploring Machine Learning in Python with Scikit-Learn
Exploring Machine Learning in Python with Scikit-LearnExploring Machine Learning in Python with Scikit-Learn
Exploring Machine Learning in Python with Scikit-Learn
 
Machine Learning at Geeky Base
Machine Learning at Geeky BaseMachine Learning at Geeky Base
Machine Learning at Geeky Base
 
Thailand Hadoop Big Data Challenge #1
Thailand Hadoop Big Data Challenge #1Thailand Hadoop Big Data Challenge #1
Thailand Hadoop Big Data Challenge #1
 
Achieving "Zero Downtime Deployment" with Automated Testing
Achieving "Zero Downtime Deployment" with Automated TestingAchieving "Zero Downtime Deployment" with Automated Testing
Achieving "Zero Downtime Deployment" with Automated Testing
 
Pronto R&D Presentation
Pronto R&D PresentationPronto R&D Presentation
Pronto R&D Presentation
 
Scrum at Pronto Marketing
Scrum at Pronto MarketingScrum at Pronto Marketing
Scrum at Pronto Marketing
 
Practical Experience in Automated Testing at Pronto Marketing
Practical Experience in Automated Testing at Pronto MarketingPractical Experience in Automated Testing at Pronto Marketing
Practical Experience in Automated Testing at Pronto Marketing
 
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
 
Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...
Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...
Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...
 
Adapting Scrum to Managing a Research Group
Adapting Scrum to Managing a Research GroupAdapting Scrum to Managing a Research Group
Adapting Scrum to Managing a Research Group
 

ทำ Microservices แบบขำๆ กับ Docker Swarm