Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Docker + DockerCompose
Search
Ruben Espinosa
June 12, 2015
Programming
160
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Docker + DockerCompose
Ruben Espinosa
June 12, 2015
Transcript
22 slides
Rails + Docker Compose Rubén Espinosa
@rderoldan1 GitHub Twitter Gmail Skype ETC
Docker - Historia LXC LinuX Containers
Docker - Matrix from Hell
Docker - Matrix from Hell
Docker - Matrix from Hell
Docker • Portable. • Orientado a las aplicaciones. • Builds
automáticos. • Versionamiento. • Reusabilidad. • Colaborativo. • Ecosistema de herramientas.
Docker - vs VM
Docker - Historia Inicio del proyecto Open Source Adquiere Orchard
$40.000.000 Microsoft IBM 2014 2013 Adquiere Kitematic Machine + Swarm + Compose 2015
Docker - Quien lo usa
Sistemas Operativos Soportados Boot2Docker
Docker - Docker Hub
Docker - Dockerfile FROM ruby:latest RUN apt-get update && apt-get
install -y libpq-dev nodejs-dev RUN mkdir /myapp WORKDIR /myapp ADD Gemfile /myapp/Gemfile ENV BUNDLE_PATH=/bundle RUN bundle install --path /bundle Add . /myapp
FIG.sh COMPOSE Compose - FIG
Compose - Ventajas #!/bin/bash # Postgres container docker run -d
-v /var/docker/postgresql:/data --name=postgres -e USER='root' \ -e PASS='amazing_pass' -e DB='my_db' paintedfox/postgresql # Rabbit container docker run -d -v /var/docker/rabbit:/data -p 0.0.0.0:15672:15672 \ -p 0.0.0.0:5672:5672 -e RABBITMQ_PASS="amazing_pass" \ --name=rabbitmq tutum/rabbitmq # Web server container docker run -i -t -e INSTANCE_TYPE="web-server" --name='my-web' -p 0.0.0.0:8000:8000 \ -v /home/my/app:/home/my/app --link=postgres:postgres --link=redis:redis --link=rabbitmq:rabbit my_docker_image "$@" run_docker_containers.sh
Compose - Ventajas web: build: . command: bundle exec thin
start -a 0.0.0.0 -p 3000 links: - db volumes: - .:/myapp ports: - "3000" db: image: postgres:latest ports: - 5432 redis: image: redis:latest docker-compose up
Compose - Comandos docker-compose build docker-compose start docker-compose build docker-compose
ps docker-compose scale <service>=<n>
DEMO
BenchMark Ejemplos Rails on Docker - Advanced Rails On Docker
- Simple
Reflexión http://blog.circleci.com/its-the-future/
Patrocinador
¡Gracias!
More Decks by Ruben Espinosa
See All by Ruben Espinosa
RealTime APPS with Rails + Socket.io + Redis
rderoldan1
0
280
Segunda sesión
rderoldan1
0
57
Presentación
rderoldan1
0
77
Primera Sesión
rderoldan1
0
69
Other Decks in Programming
See All in Programming
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
260
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
460
Kotlin JVM用に作られたライブラリのKMPを前提とした再設計
jsoizo
0
230
Beyond Chatbots: Agentic UI with Open Standards @W-JAX 2026, München
manfredsteyer
PRO
0
130
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
150
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
200
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
790
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
690
小さなアプリを作って公開するまで
onozaty
0
230
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
2
510
Featured
See All Featured
Six Lessons from altMBA
skipperchong
29
4.6k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
310
Marketing to machines
jonoalderson
1
6k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
How to Talk to Developers About Accessibility
jct
2
630
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
670
Everyday Curiosity
cassininazir
0
420
The agentic SEO stack - context over prompts
schlessera
0
1k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
910
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
670