Docker compose

Felipe Ruhland
Felipe RuhlandSoftware Engineer at eCentry em eCentry
DOCKER COMPOSE
Felipe Ruhland @ Python Floripa
DOCKER
ABOUT
ABOUT
DOCKER
written in golang
ABOUT
DOCKER
open-source project
DOCKER
developers and sysadmins
ABOUT
DOCKER
develop, ship, and run
ABOUT
DOCKER
production as fast as possible
ABOUT
history
Solomon Hykes
history
history
history
main
contributors
JAN
$15 million
(Venture Capital)
JUL
Docker acquired
Orchard (Fig)
2014
SEP
$40 million
(Sequoia Capital)
OCT
Microsoft announced
integration (2016)
DOCKER
WHY
LIGHTWEIGHT
OPEN
SECURE
- Faster delivery of your applications
- Deploy and scale more easily
- Get higher density and run more workloads
- Faster deployment makes for easier management
WHY DOCKER
CONTAINER
VMvs
CONTAINERVM
WORKS
HOW IT
HOW IT WORKS
- libcontainer (libvirt, LXC, systemd-nspawn)
- cgroups
- namespaces
- images distribution
COMPOSE
DOCKER
DOCKER COMPOSE
- Tool for defining and running multi-container applications
- Single file configuration
- Great for development environments, staging servers, and CI
- Written in python
- We don’t recommend that you use it in production yet.
DOCKER COMPOSE
- Binding to different ports on the host
- Setting environment variables differently
- Specifying a restart policy
- Adding extra services
BUT
!
#1
define
environment
with Dockerfile
#2
define services
with docker-
compose.yml
#3
docker-
compose up
dockerfile
FROM python:2.7
ADD . /code
WORKDIR /code
RUN pip install -r requirements.txt
CMD python app.py
docker-compose.yml
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
links:
- redis
redis:
image: redis
docker-compose up
$ docker-compose up
Pulling image redis...
Building web...
Starting composetest_redis_1...
Starting composetest_web_1...
redis_1 | [8] 02 Jan 18:43:35.576 # Server started, Redis version 2.8.3
web_1 | * Running on http://0.0.0.0:5000/
docker compose cli
commands
build
logs
run
scale
up
github.com/feliperuhland
feliperuhland.com
@feliperuhland
THANK YOU
1 de 31

Recomendados

Docker introduction (1)Docker introduction (1)
Docker introduction (1)Gourav Varma
345 visualizações23 slides
Docker in real lifeDocker in real life
Docker in real lifeNguyen Van Vuong
4.1K visualizações58 slides
Docker introductionDocker introduction
Docker introductionPhuc Nguyen
1.3K visualizações62 slides
Docker Container SecurityDocker Container Security
Docker Container SecuritySuraj Khetani
992 visualizações37 slides
Docker 101: Introduction to DockerDocker 101: Introduction to Docker
Docker 101: Introduction to DockerDocker, Inc.
71K visualizações30 slides
Docker: From Zero to HeroDocker: From Zero to Hero
Docker: From Zero to Herofazalraja
1.9K visualizações21 slides

Mais conteúdo relacionado

Mais procurados

Introduction to Docker ComposeIntroduction to Docker Compose
Introduction to Docker ComposeAjeet Singh Raina
16.4K visualizações29 slides
Docker and the Linux KernelDocker and the Linux Kernel
Docker and the Linux KernelDocker, Inc.
16.7K visualizações22 slides
Introduction to DockerIntroduction to Docker
Introduction to DockerPubudu Jayawardana
402 visualizações20 slides
Introduction to dockerIntroduction to docker
Introduction to dockerInstruqt
655 visualizações43 slides
Docker IntroductionDocker Introduction
Docker IntroductionSparkbit
1.1K visualizações12 slides

Mais procurados(20)

Introduction to Docker ComposeIntroduction to Docker Compose
Introduction to Docker Compose
Ajeet Singh Raina16.4K visualizações
Docker and the Linux KernelDocker and the Linux Kernel
Docker and the Linux Kernel
Docker, Inc.16.7K visualizações
Introduction to DockerIntroduction to Docker
Introduction to Docker
Pubudu Jayawardana402 visualizações
Introduction to dockerIntroduction to docker
Introduction to docker
Instruqt655 visualizações
Docker IntroductionDocker Introduction
Docker Introduction
Sparkbit1.1K visualizações
Docker IntroductionDocker Introduction
Docker Introduction
MANAOUIL Karim329 visualizações
Docker & kubernetesDocker & kubernetes
Docker & kubernetes
NexThoughts Technologies6.4K visualizações
Docker and Kubernetes 101 workshopDocker and Kubernetes 101 workshop
Docker and Kubernetes 101 workshop
Sathish VJ385 visualizações
KubernetesKubernetes
Kubernetes
Meng-Ze Lee435 visualizações
Docker BasicsDocker Basics
Docker Basics
Eueung Mulyana2.6K visualizações
TerraformTerraform
Terraform
Diego Pacheco812 visualizações
Getting started with DockerGetting started with Docker
Getting started with Docker
Ravindu Fernando521 visualizações
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
Raffaele Di Fazio570 visualizações
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetes
Krishna-Kumar 2.5K visualizações
DockerDocker
Docker
A.K.M. Ahsrafuzzaman1K visualizações
KubernetesKubernetes
Kubernetes
erialc_w3K visualizações
From Zero to DockerFrom Zero to Docker
From Zero to Docker
Abhishek Verma193 visualizações
 Kubernetes Architecture Kubernetes Architecture
Kubernetes Architecture
Knoldus Inc.2.9K visualizações

Destaque

Corso su ReactJSCorso su ReactJS
Corso su ReactJSLinkMe Srl
724 visualizações63 slides
Docker Compose by Aanand Prasad Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad Docker, Inc.
33.4K visualizações23 slides
Docker ComposeDocker Compose
Docker ComposeMiles Chou
568 visualizações18 slides
Docker - The Linux ContainerDocker - The Linux Container
Docker - The Linux ContainerBalaji Rajan
13.5K visualizações21 slides

Destaque(11)

Corso su ReactJSCorso su ReactJS
Corso su ReactJS
LinkMe Srl724 visualizações
Docker Compose by Aanand Prasad Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad
Docker, Inc.33.4K visualizações
Docker ComposeDocker Compose
Docker Compose
Miles Chou568 visualizações
Docker - The Linux ContainerDocker - The Linux Container
Docker - The Linux Container
Balaji Rajan13.5K visualizações
Why DockerWhy Docker
Why Docker
dotCloud310.6K visualizações
Docker introductionDocker introduction
Docker introduction
dotCloud455.8K visualizações
Adventures in docker composeAdventures in docker compose
Adventures in docker compose
LinkMe Srl1.5K visualizações
A Gentle Introduction To Docker And All Things ContainersA Gentle Introduction To Docker And All Things Containers
A Gentle Introduction To Docker And All Things Containers
Jérôme Petazzoni60.6K visualizações
Docker 101 - Nov 2016Docker 101 - Nov 2016
Docker 101 - Nov 2016
Docker, Inc.7.2K visualizações

Similar a Docker compose(20)

Dockerize WordPress on Mac/WindowsDockerize WordPress on Mac/Windows
Dockerize WordPress on Mac/Windows
Kite Koga2.6K visualizações
The Docker EcosystemThe Docker Ecosystem
The Docker Ecosystem
Dmitry Skaredov1.5K visualizações
Docker @ FOSS4G 2016, BonnDocker @ FOSS4G 2016, Bonn
Docker @ FOSS4G 2016, Bonn
Daniel Nüst649 visualizações
Accelerate your development with DockerAccelerate your development with Docker
Accelerate your development with Docker
Andrey Hristov320 visualizações
Accelerate your software development with DockerAccelerate your software development with Docker
Accelerate your software development with Docker
Andrey Hristov364 visualizações
Docker introductionDocker introduction
Docker introduction
Marcelo Ochoa556 visualizações
Docker trainingDocker training
Docker training
Kiran Kumar14 visualizações
ContainerDayVietnam2016: Dockerize a small businessContainerDayVietnam2016: Dockerize a small business
ContainerDayVietnam2016: Dockerize a small business
Docker-Hanoi498 visualizações
Docker - Alem da virtualizaćão Tradicional Docker - Alem da virtualizaćão Tradicional
Docker - Alem da virtualizaćão Tradicional
Marcos Vieira660 visualizações
Shipping NodeJS with Docker and CoreOSShipping NodeJS with Docker and CoreOS
Shipping NodeJS with Docker and CoreOS
Ross Kukulinski4.4K visualizações
Workshop Docker for DSpaceWorkshop Docker for DSpace
Workshop Docker for DSpace
Pascal-Nicolas Becker630 visualizações
Docker Platform and Ecosystem Nov 2015Docker Platform and Ecosystem Nov 2015
Docker Platform and Ecosystem Nov 2015
Patrick Chanezon4.7K visualizações
Docker wjax2014Docker wjax2014
Docker wjax2014
Michael Johann905 visualizações
Docker and the Container RevolutionDocker and the Container Revolution
Docker and the Container Revolution
Romain Dorgueil1.3K visualizações
Docker and containerizationDocker and containerization
Docker and containerization
Amulya Saxena226 visualizações

Último(20)

PyCon ID 2023 - Ridwan Fadjar Septian.pdfPyCon ID 2023 - Ridwan Fadjar Septian.pdf
PyCon ID 2023 - Ridwan Fadjar Septian.pdf
Ridwan Fadjar163 visualizações
The Research Portal of Catalonia: Growing more (information) & more (services)The Research Portal of Catalonia: Growing more (information) & more (services)
The Research Portal of Catalonia: Growing more (information) & more (services)
CSUC - Consorci de Serveis Universitaris de Catalunya51 visualizações
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet48 visualizações
AMD: 4th Generation EPYC CXL DemoAMD: 4th Generation EPYC CXL Demo
AMD: 4th Generation EPYC CXL Demo
CXL Forum117 visualizações
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh34 visualizações
ChatGPT and AI for Web DevelopersChatGPT and AI for Web Developers
ChatGPT and AI for Web Developers
Maximiliano Firtman152 visualizações
.conf Go 2023 - SIEM project @ SNF.conf Go 2023 - SIEM project @ SNF
.conf Go 2023 - SIEM project @ SNF
Splunk163 visualizações
Java 21 and Beyond- A Roadmap of Innovations  .pdfJava 21 and Beyond- A Roadmap of Innovations  .pdf
Java 21 and Beyond- A Roadmap of Innovations .pdf
Ana-Maria Mihalceanu51 visualizações
MemVerge: Past Present and Future of CXLMemVerge: Past Present and Future of CXL
MemVerge: Past Present and Future of CXL
CXL Forum105 visualizações
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
Prity Khastgir IPR Strategic India Patent Attorney Amplify Innovation23 visualizações
Photowave Presentation Slides - 11.8.23.pptxPhotowave Presentation Slides - 11.8.23.pptx
Photowave Presentation Slides - 11.8.23.pptx
CXL Forum118 visualizações
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman20 visualizações

Docker compose