A Docker container providing a development environment with PHP-FPM, Nginx, MySQL, Redis and SSMTP.
2.5K

This is a Docker image providing a development environment (LEMP) with Nginx, PHP 7, MySQL (MariaDB), Redis and SSMTP (for testing emails in PHP). It uses the lightweight Alpine Linux. PHP is installed along with the Phalcon framework, XDebug and other extensions that you would find available in most production servers.
It also includes a web based control panel where you can:
Note: DevA2's intended use is for development in a safe environment only. It is NOT suitable for hosting websites in production!
"$HOME"/Sites to that directory)docker run -dit --restart unless-stopped \
--name deva2 \
-p 80:80 -p 443:443 -p 3306:3306 \
-v "$HOME"/Sites:/var/www \
mnunes/deva2:latest
Open http://localhost in your browser.
| DevA 2 | Alpine | Nginx | MariaDB | PHP | Phalcon | Redis |
|---|---|---|---|---|---|---|
| latest | 3.21 | 1.26.3 | 11.4.5 | 8.4.5 | 5.9.3 | 7.2.8 |
| 1.5.3 | 3.17 | 1.22.1 | 10.6.11 | 8.1.13 | 5.1.3 | 7.0.7 |
| 1.5.2 | 3.16 | 1.22.0 | 10.6.9 | 8.1.9 | 5.0.0 RC | 7.0.4 |
| 1.5.1 | 3.15 | 1.20.2 | 10.6.7 | 8.0.16 | 5.0.0 β | 6.2.6 |
| 1.5.0 | 3.14 | 1.20.1 | 10.5.12 | 8.0.10 | 5.0.0 α | 6.2.5 |
| 1.4.2 | 3.13 | 1.18.0 | 10.5.9 | 7.4.15 | 4.1.2 | 6.0.11 |
| 1.3.1 | 3.10 | 1.16.1 | 10.3.20 | 7.4.3 | 4.0.5 | 5.0.5 |
| 1.2.2 | 3.10 | 1.16.1 | 10.3.17 | 7.3.8 | 3.4.4 | 5.0.5 |
| 1.1.1 | 3.8 | 1.14.0 | 10.2.15 | 7.2.x | 3.4.0 | 4.0.10 |
| 1.0.0 | 3.7 | 1.12.2 | 10.1.32 | 7.2.x | 3.4.0 | 4.0.6 |
See CHANGELOG.md.
DevA 2 doesn't provide an easy upgrade method. If you need to upgrade to a newer version of DevA 2, you can either upgrade the packages manually (by accessing the image directly), or remove the current image and create a new one with the latest version. For the latter, here's how:
git clone [email protected]:mignz/DevA2.git
cd DevA2 && docker build -t deva2 .
Install dnsmasq to route all .test domains to 127.0.0.1 without having to alter the hosts file every time you add a new virtual host. There are some guides on how to do exactly that on macOS and Linux.
http://www.thekelleys.org.uk/dnsmasq/doc.html
I followed this guide for the Xdebug configuration. You'll need to run the following command to give Xdebug access to the host machine:
sudo ifconfig lo0 alias 10.254.254.254
Note: Xdebug remote is disabled by default. To enable it, run the following command in the container: sed -i 's/xdebug.remote_autostart = 0/xdebug.remote_autostart = 1/' /etc/php7/php.ini and restart PHP-FPM.
Download all the certificates you need from cp.test.
Content type
Image
Digest
sha256:48feda1a3…
Size
207.9 MB
Last updated
over 1 year ago
docker pull mnunes/deva2