Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Build Your Own PaaS with Docker
Table of Contents
Build Your Own PaaS with Docker
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Installing Docker
What is Docker?
Docker on Ubuntu Trusty 14.04 LTS
Upgrading Docker on Ubuntu Trusty 14.04 LTS
User permissions
Docker on Mac OS X
Installation
Upgrading Docker on Mac OS X
Docker on Windows
Installation
Upgrading Docker on Windows
Docker on Amazon EC2
Installation
Open ports
Upgrading Docker on Amazon EC2
User permissions
Displaying Hello World
Summary
2. Exploring Docker
The Docker image
The Docker container
The Docker command-line interface
The Docker Registry Hub
Browsing repositories
Exploring published images
Summary
3. Creating Our First PaaS Image
The WordPress image
Moving from the defaults
Our objective
Preparing for caching
Raising the upload limit
Plugin installation
Making our changes persist
Hosting image sources on GitHub
Publishing an image on the Docker Registry Hub
Automated builds
Summary
4. Giving Containers Data and Parameters
Data volumes
Mounting a host directory as a data volume
Mounting a data volume container
Backing up and restoring data volumes
Creating a data volume images
Data volume image
Exposing mount points
The Dockerfile
Hosting on GitHub
Publishing on the Docker Registry Hub
Running a data volume container
Passing parameters to containers
Creating a parameterized image
Summary
5. Connecting Containers
Manually connecting containers
Exploring the contents of a data volume container
Connecting containers using Docker Compose
Installing Docker Compose
Basic Docker Compose commands
Service
Using the run command
Using the scale command
Setting up our PaaS with Docker Compose
Connecting containers using Crane
Installing Crane
Usage
Configuration
Summary
6. Reverse Proxy Requests
Explaining the problem
Finding a solution
Implementing the solution
Implementation with HAProxy
Installing HAProxy
Configuring HAProxy
Adding more domains to HAProxy
Implementation with Nginx
Installing Nginx
Configuring Nginx
Adding more domains to Nginx
Automating the process of mapping domains
Summary
7. Deployment on Our PaaS
The problem with our current setup
The tools/services available
Dokku – Docker-powered mini-Heroku
Installation
Creating a sample Dokku app
How Dokku works
The receive process
Dokku plugins
Dokku domains plugin
Dokku-docker-options
Volume plugin for Dokku
Dokku-link
MariaDB plugin for Dokku
Setting up a WordPress app with Dokku
Starting multiple apps
Adding a domain to Dokku
More notes on Dokku
Summary
8. What's Next?
What is a Twelve-Factor app?
Flynn
Deis
Rocket
Orchestration tools
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →