Leanpub Header

Skip to main content

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.

Minimum price

$39.99

$49.99

You pay

$49.99

Author earns

$39.99

Packages

Details
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
29,973Words
About

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

Share this book

Categories

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.99

Master 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.99

    Master 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 Edition
      A custom hand-crafted design of the PDF version of the book
    • Docker Laravel Starter Code
      Starter project source code for Laravel 5.5 based on my production Docker setup with PHP 7.2.
    • Docker Symfony 4 Starter Code
      Starter 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/

    Leanpub Podcast

    Episode 105

    An Interview with Paul Redmond

    Contents

    Table of Contents

    Chapter 1: Up and Running

    1. Installing Docker on OS X
    2. Installing Docker on Linux
    3. Post-Install Steps for Linux
    4. Installing Docker on Windows
    5. Running Your First Docker Container
    6. Ready to Ship

    Chapter 2: PHP Container Basics

    1. Creating a New Project
    2. Running the PHP Container
    3. Running Containers with Docker Compose
    4. Basic PHP INI Changes
    5. Composed and Ready for Adventure

    Chapter 3: LAMP Baby!

    1. Setting up the LAMP Project
    2. Installing PHP Modules
    3. The Database Container
    4. Using Tagged Image Versions
    5. Offical Docker Image Readme File
    6. PHP Module Configuration
    7. Enabling Apache Modules
    8. LAMPed Up

    Chapter 4: Development Tools

    1. Environment Configuration
    2. Xdebug Setup
    3. Build The Latest Image
    4. Xdebug Profiling
    5. Making Xdebug Disappear
    6. De-Debugged

    Chapter 5: Using Composer PHP with Docker

    1. Project Setup
    2. Installing Composer in Docker
    3. Installing Private Composer Packages in Docker
    4. Bitbucket OAuth Help
    5. Caching Composer Dependencies for Faster Builds
    6. Running Composer Locally
    7. Composer Gold Edition

    Chapter 6: Web Servers and PHP-FPM

    1. Creating the New Project
    2. Hello Nginx
    3. File Permissions
    4. Serving Static Assets
    5. Caddy Server
    6. File Permissions
    7. Learning more about the Caddyfile
    8. Logs to Stdout
    9. You’ve Been Served

    Chapter 7: Legacy PHP Applications

    1. EOL Software
    2. Setting Up
    3. The Dockerfile
    4. Running Apache
    5. Development Workflow and Commands
    6. Improving Configuration
    7. Mcrypt Extension
    8. Suhosin
    9. The Born Legacy

    Chapter 8: Custom Commands

    1. Introduction to Confd
    2. Quickstart
    3. The Custom CMD
    4. Confd With a Consul Backend
    5. One of a Kind

    Chapter 9: Docker Registry

    1. Setting Up a Repository and Project
    2. Pushing the Image to Docker Hub
    3. Automating the Image Build
    4. Free Docker Cloud Build Nodes
    5. Working with Other Docker Registries
    6. Build Caching
    7. Extending Your Images
    8. Registered Docker Image Builder

    Chapter 10: Deploying Docker

    1. Rancher Overview

    Rancher Server Hostname

    Tagging Hosts in Rancher

    1. Using Rancher Compose
    2. Registry Accounts
    3. Remember to Build the Image
    4. Rancher Help
    5. Rancher UI Tricks
    6. 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.

    Learn more about writing on Leanpub