PHPackages                             phpexperts/dockerize - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. phpexperts/dockerize

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

phpexperts/dockerize
====================

The quickest and easiest way to switch any PHP app/library to use Docker.

v14.1.0(6mo ago)7116.9k↓50%6[3 issues](https://github.com/PHPExpertsInc/dockerize/issues)20MITShell

Since Apr 17Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/PHPExpertsInc/dockerize)[ Packagist](https://packagist.org/packages/phpexperts/dockerize)[ Docs](https://www.phpexperts.pro/)[ RSS](/packages/phpexperts-dockerize/feed)WikiDiscussions v14.x Synced 1mo ago

READMEChangelog (4)DependenciesVersions (71)Used By (20)

Dockerize PHP
=============

[](#dockerize-php)

A utility for rapidly deploying [Docker](https://www.docker.com) for PHP apps.

Watch the zero-dependency installation video:
Installing on a legacy PHP 5.6 app in 2 minutes:

**This project has been tested against over 350,000 open-sourced Packagist packages (via the Bettergist Archiver project) and is compatible with 99.999% of them.**

Includes:

- PHP 5.6, 7.0-7.4 + 8.0, 8.1, 8.2, 8.3, and 8.4.
- Nginx
- Redis v7.2
- PostgreSQL v16
- MariaDB v10.11

Current PHP versions:

- PHP 5.6.40-81+ubuntu24.04.1+deb.sury.org+1 (cli)
- PHP 7.0.33-79+ubuntu24.04.1+deb.sury.org+1 (cli) (built: Dec 24 2024 06:43:22) ( NTS )
- PHP 7.1.33-67+ubuntu24.04.1+deb.sury.org+1 (cli) (built: Dec 24 2024 06:50:54) ( NTS )
- PHP 7.2.34-54+ubuntu24.04.1+deb.sury.org+1 (cli) (built: Dec 24 2024 06:58:15) ( NTS )
- PHP 7.3.33-24+ubuntu24.04.1+deb.sury.org+1 (cli) (built: Dec 24 2024 07:05:25) ( NTS )
- PHP 7.4.33 (cli) (built: Jul 3 2025 16:41:49) ( NTS )
- PHP 8.0.30 (cli) (built: Jul 3 2025 16:39:43) ( NTS )
- PHP 8.1.33 (cli) (built: Jul 3 2025 16:16:18) (NTS)
- PHP 8.2.29 (cli) (built: Jul 3 2025 13:08:18) (NTS)
- PHP 8.3.25 (cli) (built: Aug 29 2025 12:01:53) (NTS)
- PHP 8.4.11 (cli) (built: Aug 29 2025 06:48:12) (NTS)

The `phpexperts/php:${PHP_VERSION}-full` images contain every bundled PHP extension, and Redis.

- imap
- ldap
- pspell
- redis
- snmp
- xmlrpc
- Oracle ext-oci

The `phpexperts/php:VERSION-full` images contain everything in the full image plus drivers for Oracle (ext-oci8),

If you need an extension that is not available in the `full` build, please create an Issue at GitHub.

Installation
============

[](#installation)

- Watch the [**Installation HOWTO video**](https://youtu.be/xZxaJcsbrWU).
- Here's another Zero Install demo including PHP 8.4 and the php-ci system for testing every version of PHP.

[![phpexperts/dockerize Demo](https://private-user-images.githubusercontent.com/1125541/395483191-6dc866ed-b2fb-4262-98fe-2f8dbaa1e76f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzQwNzgxNDgsIm5iZiI6MTczNDA3Nzg0OCwicGF0aCI6Ii8xMTI1NTQxLzM5NTQ4MzE5MS02ZGM4NjZlZC1iMmZiLTQyNjItOThmZS0yZjhkYmFhMWU3NmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMTNUMDgxNzI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTFiOGM0ZDFkMTRlMmUwNTJmOWM5ZDA5M2U2OWU5NDFlOTk4ZTc2YmIwMmZiZjAyYmY3ZTZhMjI3OWRlZmIwMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.747HeCQJJpg9Snd93a0BECrVAF9-_lDwm-E32-d69nM)](https://youtu.be/rCfmTH62-os)

Via Bash (Zero PHP dependencies)
--------------------------------

[](#via-bash-zero-php-dependencies)

```
bash
