Docker for PHP Developers, Second Edition.
A guide to using Docker for PHP development
Docker for PHP Developers is a guide that will teach you how to use Docker for PHP development and create clean, repeatable environments that are easy to understand.
Learn how Docker can simplify your PHP development setup and make it simple to share your environment with others. You will learn how to use Docker and PHP with confidence.
About
About the Book
Docker for PHP Developers is the guide I wish I had when I started learning Docker. It's everything I've learned and refined using Docker on dozens of projects over the last three years combined into one course. Instead of piecing everything together yourself, you can start being productive with PHP and Docker in a few days.
Development Tools
- Learn how to manage containers
- Learn how to use Docker Compose
- Use XDebug with Docker
- Use PHP Composer with Docker
PHP Environment
- Building PHP containers from scratch
- Installing PHP modules
- Managing module INI files
- Per-environment configuration
Web Servers
- Nginx + PHP-FPM
- Explore Caddy and FrankenPHP
- Repeatable development environments with Docker
CLI Applications
- Create a CLI application image
- Learn how to log CLI output with Docker
- Learn to use build arguments
Packages
Pick Your Package
All packages include the ebook in the following formats: PDF, EPUB, and Web
Docker for PHP Developers - Book Only
Minimum price
Suggested price$39.99Master Docker for PHP Development Includes: - The 222-page Docker for PHP Developers Book - Beautiful custom handcrafted PDF design - Basic ePUb and Mobi formats on the go
$25.99
Docker for PHP Developers - Starter Bundle
Minimum price
Suggested price$49.99Master Docker for PHP Development Includes: - Beautiful custom handcrafted PDF design - A starter Laravel project with Docker - A starter Symfony 4 project with Docker - The 222-page Docker for PHP Developers Book - Basic ePUb and Mobi formats on the go The starter projects are the latest versions of Laravel and Symfony, combined with my Docker setup that I've honed over the last 3+ years of using Docker in production. See how I organize my PHP projects with Docker and use them to craft your own projects.
$39.99
- Docker for PHP Developers Fancy EditionA custom hand-crafted design of the PDF version of the book
- Docker Laravel Starter CodeStarter project source code for Laravel 5.5 based on my production Docker setup with PHP 7.2.
- Docker Symfony 4 Starter CodeStarter project source code for Symfony 4, based on my production Docker setup with PHP 7.2.
Author
About the Author
Paul Redmond
Hello! I'm Paul Redmond. I'm a full stack developer writing stuff with Laravel, Vue.js, and Docker. I am passionate about being productive, writing clean code, and creating simple infrastructure.
I am the author of Writing APIs with Lumen, now published with Apress as Lumen Programming Guide. You can also find out more about my latest course, Docker for PHP Developers at https://bitpress.io/docker-for-php-developers/

Episode 105
An Interview with Paul Redmond
Contents
Table of Contents
Chapter 1: Up and Running
- Installing Docker on OS X
- Installing Docker on Linux
- Post-Install Steps for Linux
- Installing Docker on Windows
- Running Your First Docker Container
- Ready to Ship
Chapter 2: PHP Container Basics
- Creating a New Project
- Running the PHP Container
- Running Containers with Docker Compose
- Basic PHP INI Changes
- Composed and Ready for Adventure
Chapter 3: LAMP Baby!
- Setting up the LAMP Project
- Installing PHP Modules
- The Database Container
- Using Tagged Image Versions
- Offical Docker Image Readme File
- PHP Module Configuration
- Enabling Apache Modules
- LAMPed Up
Chapter 4: Development Tools
- Environment Configuration
- Xdebug Setup
- Build The Latest Image
- Xdebug Profiling
- Making Xdebug Disappear
- De-Debugged
Chapter 5: Using Composer PHP with Docker
- Project Setup
- Installing Composer in Docker
- Installing Private Composer Packages in Docker
- Bitbucket OAuth Help
- Caching Composer Dependencies for Faster Builds
- Running Composer Locally
- Composer Gold Edition
Chapter 6: Web Servers and PHP-FPM
- Creating the New Project
- Hello Nginx
- File Permissions
- Serving Static Assets
- Caddy Server
- File Permissions
- Learning more about the Caddyfile
- Logs to Stdout
- You’ve Been Served
Chapter 7: Legacy PHP Applications
- EOL Software
- Setting Up
- The Dockerfile
- Running Apache
- Development Workflow and Commands
- Improving Configuration
- Mcrypt Extension
- Suhosin
- The Born Legacy
Chapter 8: Custom Commands
- Introduction to Confd
- Quickstart
- The Custom CMD
- Confd With a Consul Backend
- One of a Kind
Chapter 9: Docker Registry
- Setting Up a Repository and Project
- Pushing the Image to Docker Hub
- Automating the Image Build
- Free Docker Cloud Build Nodes
- Working with Other Docker Registries
- Build Caching
- Extending Your Images
- Registered Docker Image Builder
Chapter 10: Deploying Docker
- Rancher Overview
Rancher Server Hostname
Tagging Hosts in Rancher
- Using Rancher Compose
- Registry Accounts
- Remember to Build the Image
- Rancher Help
- Rancher UI Tricks
- Yeeeee-haaaa!
Eject
Get the free sample chapters
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.