Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Desenvolvendo e deployando aplicações PHP utili...
Search
Juliana Fernandes
October 07, 2016
Technology
1
110
Desenvolvendo e deployando aplicações PHP utilizando Docker
Juliana Fernandes
October 07, 2016
Tweet
Share
More Decks by Juliana Fernandes
See All by Juliana Fernandes
SOLID
littlejuh
0
53
Testes de Software
littlejuh
0
42
Construindo releases confiáveis com o uso de Canary Release.
littlejuh
0
72
Social Coding: Contribuindo, Aprendendo e Conhecendo Pessoas
littlejuh
0
60
Definindo uma estratégia de testes em um contexto de microserviços
littlejuh
0
29
Como evitar monolitos distribuídos
littlejuh
0
90
Short-Lived Branch Based Development
littlejuh
0
81
Acabando com as quebras de contrato nos seus micro-serviços
littlejuh
0
320
Compartilhando Experiências da ThoughtWorks University
littlejuh
0
98
Other Decks in Technology
See All in Technology
複雑さを受け入れるか、拒むか? - 事業成長とともに育ったモノリスを前に私が考えたこと #RSGT2026
murabayashi
1
2k
SES向け、生成AI時代におけるエンジニアリングとセキュリティ
longbowxxx
0
320
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
Kaggleコンペティション「MABe Challenge - Social Action Recognition in Mice」振り返り
yu4u
1
470
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
2.9k
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
2
890
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
3
380
ALB「証明書上限問題」からの脱却
nishiokashinji
0
190
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
330
手軽に作れる電卓を作って イベントソーシングに親しもう CQRS+ESカンファレンス2026
akinoriakatsuka
0
400
Scrum Guide Expansion Pack が示す現代プロダクト開発への補完的視点
sonjin
0
700
Featured
See All Featured
From π to Pie charts
rasagy
0
110
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
260
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
43
The Art of Programming - Codeland 2020
erikaheidi
57
14k
エンジニアに許された特別な時間の終わり
watany
106
230k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Facilitating Awesome Meetings
lara
57
6.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Transcript
Desenvolvendo e deployando aplicações PHP utilizando Docker 1
Sobre nós Waldemar Neto @waldemarnt http://walde.co/ Juliana Fernandes @littlejuh_ https://github.com/littlejuh
https://speakerdeck.com/littlejuh 2
Componentes de uma aplicação PHP APP Extensions: Php5-mysql Mcrypt ...
Configurações: { Env: prod, Db_name: ... } 3
O que é Docker? 4
Alguns benefícios 5 Onboard rápido e fácil Sem conflitos na
app Consistência nos ambientes
Conceitos Dockerfile, build, containers e orquestração 6
Docker vs Maquinas Virtuais 7
Dockerfile FROM imagem RUN comando COPY copia arquivos do host
para a imagem CMD comando de saida 8
Imagem Docker FROM imagem RUN comando COPY copia arquivos do
host para a imagem CMD comando de saida 9
Cachê de camadas de imagens docker FROM imagem RUN outro
comando COPY copia arquivos do host para a imagem CMD comando de saida 10
Processo de Build Download da imagem base Comandos Imagem pronta
11
Containers 12
Volumes DADOS 13
Osquestração com docker-compose 14
Laravel PHP + Docker Configurando o Docker para apps PHP
15
Laravel 16
Criando Dockerfile 17
Processo de build 18
Docker Compose 19
NETWORK APP depends e volumes Servidor web porta 80 20
Sincronizando volumes Monta volume no container 21
Rodando comando externos 22
Outros comandos 23
Comandos customizados True ou false 24
Containers para executarem ações 25
Shipping to production! Pontos de atenção 26
Imagem como artefato 27
O mesmo ambiente em todo lugar GIT DEV QA PROD
CI/CD Registry 28
Orquestração em produção 29
Docker compose em produção Node docker compose APP • Facilidade
de usar em dev e prod • Focado em orquestração • Focado em uma máquina/node • Não possui health check • Possui downtime • Baixa resiliencia 30
Docker Swarm Docker Swarm Node 1 Node 2 Node 3
APP APP APP 31
Kubernetes Kubernetes master replication controller Node 1 Node 2 Node
3 POD APP POD APP APP POD 32
Referencias 33 • docker.com • laravel.com • kubernetes.io • leanpub.com/dockerparadesenvolvedores
• http://techfree.com.br • https://12factor.net
Valeu! Perguntas? @waldemarnt - @littlejuh_