SlideShare a Scribd company logo
#dfist#dfist
Infinite Scalable Systems with
Docker
Huseyin BABAL
Full-Stack Software Engineer @ GittiGidiyor
#dfist#dfist
#dfist#dfist
Docker
#dfist#dfist
What is Docker
Docker lets you to package application with its dependencies like code,
runtime, system libraries, etc. inside one container
#dfist#dfist
VM vs Docker
Infrastructure Infrastructure
Host OS OS
Hypervisor Docker Engine
Guest OS Guest OS Guest OS
bins/libs bins/libs bins/libs
app1 app2 app3
bins/libs bins/libs bins/libs
app1 app2 app3
#dfist#dfist
Docker Machine
#dfist#dfist
What is Docker Machine?
Docker Machine lets you to create Docker host
and specific client to connect Docker on local
computer, cloud providers, even in your own
data center.
#dfist#dfist
Creating Docker Machine
docker-machine create -d virtualbox default
#dfist#dfist
Docker Swarm
#dfist#dfist
What is Docker Swarm?
Native clustering for Docker
#dfist#dfist
Howto Create Swarm?
SID=docker run swarm create
$SID will be used on clustering
#dfist#dfist
Master Create
docker-machine create 
-d virtualbox 
--swarm 
--swarm-master 
--swarm-discovery token://$SID 
swarm-master
#dfist#dfist
Agent Create
docker-machine create 
-d virtualbox 
--swarm 
--swarm-discovery token://$SID 
swarm-agent-00
#dfist#dfist
Swarm Master Process
#dfist#dfist
Swarm Agent Process
#dfist#dfist
Swarm Relay Network
#dfist#dfist
Architectural Design
#dfist#dfist
Components
docker-gen Image
Nginx
NodeJS Application
#dfist#dfist
Docker Project
#dfist#dfist
docker-gen Image
Generates files from docker container metadata
● Centralized Logging
● Log Rotation
● Reverse Proxy Configs
● Service Discovery
#dfist#dfist
How to Build?
docker build -t docker-gen ./docker-gen
#dfist#dfist
How to Run?
docker run -d --restart=always --name=docker-gen 
--env=affinity:image==docker-gen:latest 
--env=DOCKER_HOST=tcp://192.168.99.103:3376 docker-gen
#dfist#dfist
Nginx
#dfist#dfist
How to Run?
docker run -d --restart=always --name=nginx -p 80:80 --
volumes-from=docker-gen nginx
#dfist#dfist
http {
upstream api.nodejs.com {
server 192.168.99.100:5001;
server 192.168.99.100:5002;
}
server {
listen 80;
location / {
proxy_pass http://api.nodejs.com;
}
}
}
#dfist#dfist
NodeJS Application
#dfist#dfist
How to Run?
docker run -d --restart=always -p 3000 --name hello-
express-1 -P --env VHOST=api.nodejs.com
huseyinbabal/express-hello
#dfist#dfist
Load
Balancer
swarm-agent-01
swarm-agent-02
swarm-master
Docker
Gen
#dfist#dfist
Show Time!
You can clone project here
#dfist
Thank you!
Questions?Questions?
@huseyinbabal
+HüseyinBABAL
http://huseyinbabal.net

More Related Content

What's hot (20)

PPTX
Lightning talk about Docker
Jostein Barry-Straume
 
PDF
Using Containers for Continuous Integration and Continuous Delivery
Carlos Sanchez
 
PDF
Docker Elastic Beanstalk
Ladislav Prskavec
 
PDF
Getting started with google kubernetes engine
Shreya Pohekar
 
PPTX
EF Core in Containerized ASP.NET Core APIs
Julie Lerman
 
PPTX
TIAD 2016 : Migrating 100% of your production services to containers
The Incredible Automation Day
 
PDF
Dokku
Denys Kurets
 
PPTX
Cloud term paper--docker container technology
AnilGupta441
 
PDF
How To Build and Run Node Apps with Docker and Compose
Docker, Inc.
 
PDF
Dockerize
JaeHyeonPark13
 
PDF
Docker in Production - IPC 2016
Robert Lemke
 
PDF
Kubernetes at Google Cloud Community Copenhagen
Kevin Simper
 
PPTX
Containerize development
Daniel Foo
 
PPTX
Setting up Kubernetes with tectonic
Vishal Biyani
 
PDF
Functional Programming in Serverless World (Serveless UG Poland)
Serverless User Group Poland
 
PPTX
Docker - A container full of Chocolatey
Stefan Scherer
 
PDF
"Yahoo! JAPAN の Kubernetes-as-a-Service" で加速するアプリケーション開発
Yahoo!デベロッパーネットワーク
 
PDF
Docker Interview Questions
Satyam Jaiswal
 
PDF
Polyglot programming and agile development
Shashank Teotia
 
PDF
Docker Oxford launch - Introduction to Docker
jonatanblue
 
Lightning talk about Docker
Jostein Barry-Straume
 
Using Containers for Continuous Integration and Continuous Delivery
Carlos Sanchez
 
Docker Elastic Beanstalk
Ladislav Prskavec
 
Getting started with google kubernetes engine
Shreya Pohekar
 
EF Core in Containerized ASP.NET Core APIs
Julie Lerman
 
TIAD 2016 : Migrating 100% of your production services to containers
The Incredible Automation Day
 
Cloud term paper--docker container technology
AnilGupta441
 
How To Build and Run Node Apps with Docker and Compose
Docker, Inc.
 
Dockerize
JaeHyeonPark13
 
Docker in Production - IPC 2016
Robert Lemke
 
Kubernetes at Google Cloud Community Copenhagen
Kevin Simper
 
Containerize development
Daniel Foo
 
Setting up Kubernetes with tectonic
Vishal Biyani
 
Functional Programming in Serverless World (Serveless UG Poland)
Serverless User Group Poland
 
Docker - A container full of Chocolatey
Stefan Scherer
 
"Yahoo! JAPAN の Kubernetes-as-a-Service" で加速するアプリケーション開発
Yahoo!デベロッパーネットワーク
 
Docker Interview Questions
Satyam Jaiswal
 
Polyglot programming and agile development
Shashank Teotia
 
Docker Oxford launch - Introduction to Docker
jonatanblue
 

Similar to Infinite Scalable Systems with Docker (20)

PPTX
Docker - Ankara JUG, Nisan 2015
Mustafa AKIN
 
PPTX
Docker Basic to Advance
Paras Jain
 
PDF
Docker
SangtongPeesing
 
PPTX
Microservices in academic environment
Milind Bhagwati
 
PPTX
Docker: From Zero to Hero
fazalraja
 
ODP
An Introduction To Docker
James fraser
 
PDF
11thDockerMeetupSwitzerland
Michael Mueller
 
PPTX
You, and Me, and Docker Makes Three
Christopher Grayson
 
PPTX
Docker Timisoara: Dockercon19 recap slides, 23 may 2019
Radulescu Adina-Valentina
 
PDF
Introduction to Docker at the Azure Meet-up in New York
Jérôme Petazzoni
 
PDF
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
PDF
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
PPTX
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Simplilearn
 
PDF
Introduction to Docker and deployment and Azure
Jérôme Petazzoni
 
PDF
Docker interview Questions-1.pdf
Yogeshwaran R
 
PDF
Docker and Containers for Development and Deployment — SCALE12X
Jérôme Petazzoni
 
PDF
Docker fundamentals
Alper Unal
 
PDF
DockerCon 2016 Seattle Recap
Philipp Garbe
 
PDF
Real-World Docker: 10 Things We've Learned
RightScale
 
PDF
Francisco Javier Ramirez Urea - Hopla - OSL19
marketingsyone
 
Docker - Ankara JUG, Nisan 2015
Mustafa AKIN
 
Docker Basic to Advance
Paras Jain
 
Microservices in academic environment
Milind Bhagwati
 
Docker: From Zero to Hero
fazalraja
 
An Introduction To Docker
James fraser
 
11thDockerMeetupSwitzerland
Michael Mueller
 
You, and Me, and Docker Makes Three
Christopher Grayson
 
Docker Timisoara: Dockercon19 recap slides, 23 may 2019
Radulescu Adina-Valentina
 
Introduction to Docker at the Azure Meet-up in New York
Jérôme Petazzoni
 
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Simplilearn
 
Introduction to Docker and deployment and Azure
Jérôme Petazzoni
 
Docker interview Questions-1.pdf
Yogeshwaran R
 
Docker and Containers for Development and Deployment — SCALE12X
Jérôme Petazzoni
 
Docker fundamentals
Alper Unal
 
DockerCon 2016 Seattle Recap
Philipp Garbe
 
Real-World Docker: 10 Things We've Learned
RightScale
 
Francisco Javier Ramirez Urea - Hopla - OSL19
marketingsyone
 
Ad

More from Hüseyin BABAL (8)

PPTX
MongoDB GeoSpatial Feature
Hüseyin BABAL
 
PPTX
NodeJS ve API Tasarım Temelleri
Hüseyin BABAL
 
PPTX
RESTful API Design Fundamentals
Hüseyin BABAL
 
PPTX
Token Based Authentication Systems with AngularJS & NodeJS
Hüseyin BABAL
 
PPTX
Token Based Authentication Systems
Hüseyin BABAL
 
PDF
Make Your Application Social
Hüseyin BABAL
 
PDF
Realtime web applications with ExpressJS and SocketIO
Hüseyin BABAL
 
PDF
Complete MVC on NodeJS
Hüseyin BABAL
 
MongoDB GeoSpatial Feature
Hüseyin BABAL
 
NodeJS ve API Tasarım Temelleri
Hüseyin BABAL
 
RESTful API Design Fundamentals
Hüseyin BABAL
 
Token Based Authentication Systems with AngularJS & NodeJS
Hüseyin BABAL
 
Token Based Authentication Systems
Hüseyin BABAL
 
Make Your Application Social
Hüseyin BABAL
 
Realtime web applications with ExpressJS and SocketIO
Hüseyin BABAL
 
Complete MVC on NodeJS
Hüseyin BABAL
 
Ad

Recently uploaded (20)

PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 

Infinite Scalable Systems with Docker