
Usage |
Architecture |
Community |
Features |
Intranet |
Screenshots |
Contributing |
Logos |
License













Support for valid https out of the box.
The Devilbox is a modern and highly customisable dockerized PHP stack supporting full LAMP
and MEAN and running on all major platforms. The main goal is to easily switch and combine
any version required for local development. It supports an unlimited number of projects for
which vhosts, SSL certificates and DNS records are created automatically.
Reverse proxies per project are supported to ensure listening server such as NodeJS can also be reached.
Email catch-all and popular development tools will be at your service as well. Configuration is not necessary, as everything is already pre-setup.
Furthermore, the Devilbox provides an identical and reproducible development environment for different host operating systems.
Requirements





Architecture
Available Stacks
The Devilbox aims to be a swiss army knife for local development by providing you all the services
you would ever need. To get an idea about the architecture behind it and to also see what's available
have a look at the following diagrams and tables.
Devilbox artwork
Available Container
The following table lists all integrated and pre-configured Docker container shipped by the Devilbox.
Only the webserver and PHP container are mandatory, all others are optional and don't need to be started.
Each of them is also available in multiple different versions in order to reflect your exact desired environment.
Accel |
Web |
App |
SQL |
NoSQL |
Queue / Search |
ELK |
Utils |
HAProxy |
Apache |
PHP |
MariaDB |
Memcached |
RabbitMQ |
ElasticSearch |
Bind |
Varnish |
Nginx |
Python (Flask) |
MySQL |
MongoDB |
Solr |
Logstash |
Blackfire |
|
|
|
PerconaDB |
Redis |
|
Kibana |
MailHog |
|
|
|
PostgreSQL |
|
|
|
Ngrok |
Documentation:
Available Container
The Devilbox has a lot of features reaching from a simple single-user development environment that
works out of the box up to a shared development infrastructure for a corporate network.
In order to be aware about all that features, ensure to have skimmed over the
documentation, so you know what can be done and how that might
simplify your every-day life. If you ever run into any unforseen issues, feel free to join the
chat or visit the forums and get community support quickly.
Usage
Quick start
Documentation:
Install the Devilbox |
Start the Devilbox |
.env file
Selective start
The above will start all containers, you can however also just start the containers you actually need. This is achieved by simply specifying them in the docker-compose command.
docker-compose up httpd php mysql redis
Documentation:
Start only some container

Run different versions
Every single attachable container comes with many different versions. In order to select the desired version for a container, simply edit the .env
file and uncomment the version of choice. Any combination is possible.
[1] PHP 5.2 is available to use, but it is not officially supported. The Devilbox intranet does not work with this version as PHP 5.2 does not support namespaces. Furthermore PHP 5.2 does only work with Apache 2.4, Nginx stable and Nginx mainline. It does not work with Apache 2.2. Use at your own risk.
[2] PHP 8.0 is an upcoming unreleased versions of PHP, which are directly built out of their official git branches every night to assure you will leverage their latest features.
Documentation:
Change container versions
Additional services
Additionally to the default stack, there are a variety of other services that can be easily enabled and started.
Documentation:
Enable custom container
Enter the container
You can also work directly inside the php container. Simply use the bundled scripts shell.sh
(or shell.bat
for Windows).
The PS1
will automatically be populated with current chosen php version.
Navigate the the Devilbox directory and type the below listed command:
Your projects can be found in /shared/httpd
. DNS records are automatically available inside the php container. Also every other service will be available on 127.0.0.1
inside the php container (tricky socat port-forwarding).
Documentation:
Work inside the PHP container |
Directory overview
Quick Video intro


Feature overview
The Devilbox has everything setup for you. The only thing you will have to install is Docker and Docker Compose. Virtual hosts and DNS entries will be created automatically, just by adding new project folders.
Documentation:
Devilbox Prerequisites
Features
Documentation:
Setup Auto DNS |
Setup valid HTTPS |
Configure Xdebug |
Customize PHP
Batteries
The following batteries are available in the Devilbox intranet by default:
Documentation:
Devilbox Intranet
The following tools will assist you on creating new projects easily as well as helping you check your code against guidelines.
Well-known and popular tools will be at your service as well:
Documentation:
Available Tools
Available PHP Modules
The Devilbox is a development stack, so it is made sure that a lot of PHP modules are available out of the box in order to work with many different frameworks.
- Core enabled (cannot be disabled): ✔
- Enabled (can be disabled): ?
- Available, but disabled (can be enabled): d
Modules |
PHP 5.2 |
PHP 5.3 |
PHP 5.4 |
PHP 5.5 |
PHP 5.6 |
PHP 7.0 |
PHP 7.1 |
PHP 7.2 |
PHP 7.3 |
PHP 7.4 |
PHP 8.0 |
amqp |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
apc |
|
? |
? |
? |
? |
|
|
|
|
|
|
apcu |
|
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
bcmath |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
blackfire |
|
|
|
|
d |
d |
d |
d |
d |
d |
|
bz2 |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
calendar |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
Core |
|
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
ctype |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
curl |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
date |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
dba |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
dom |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
enchant |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
ereg |
|
✔ |
✔ |
✔ |
✔ |
|
|
|
|
|
|
exif |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
FFI |
|
|
|
|
|
|
|
|
|
? |
✔ |
fileinfo |
? |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
filter |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
ftp |
? |
? |
? |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
gd |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
gettext |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
gmp |
|
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
hash |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
iconv |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
igbinary |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
imagick |
|
|
|
? |
? |
? |
? |
? |
? |
? |
|
imap |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
interbase |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
|
intl |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
ioncube |
d |
d |
d |
d |
d |
d |
d |
d |
d |
|
|
json |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
ldap |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
libxml |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
mbstring |
✔ |
? |
? |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
mcrypt |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
memcache |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
memcached |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
mhash |
|
|
|
|
✔ |
|
|
|
|
|
|
mongo |
? |
? |
? |
? |
? |
|
|
|
|
|
|
mongodb |
|
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
msgpack |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
mysql |
✔ |
✔ |
? |
? |
? |
|
|
|
|
|
|
mysqli |
✔ |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
mysqlnd |
|
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
OAuth |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
oci8 |
|
d |
d |
d |
d |
d |
d |
d |
d |
d |
d |
openssl |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
pcntl |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
pcre |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
PDO |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
pdo_dblib |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
PDO_Firebird |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
pdo_mysql |
✔ |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
PDO_OCI |
|
|
|
|
|
d |
d |
d |
d |
d |
d |
pdo_pgsql |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
pdo_sqlite |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
pdo_sqlsrv |
|
|
|
|
|
d |
d |
d |
d |
|
|
pgsql |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
phalcon |
|
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
Phar |
? |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
posix |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
pspell |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
psr |
|
|
? |
? |
? |
? |
? |
? |
? |
? |
|
rdkafka |
|
d |
d |
d |
d |
d |
d |
d |
d |
d |
|
readline |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
recode |
? |
✔ |
✔ |
? |
? |
? |
? |
? |
? |
|
|
redis |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
Reflection |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
session |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
shmop |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
SimpleXML |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
snmp |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
soap |
✔ |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
sockets |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
sodium |
|
|
|
|
|
|
|
✔ |
✔ |
✔ |
✔ |
solr |
|
|
|
|
|
|
? |
? |
? |
? |
|
SPL |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
SQLite |
✔ |
✔ |
|
|
|
|
|
|
|
|
|
sqlite3 |
|
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
sqlsrv |
|
|
|
|
|
d |
d |
d |
d |
|
|
ssh2 |
|
|
|
|
|
? |
? |
? |
? |
? |
|
standard |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
swoole |
|
d |
d |
d |
d |
d |
d |
d |
d |
d |
|
sysvmsg |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
sysvsem |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
sysvshm |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
tidy |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
tokenizer |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
uploadprogress |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
wddx |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
|
xdebug |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
xml |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
xmlreader |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
xmlrpc |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
xmlwriter |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
xsl |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
yaml |
|
? |
? |
? |
? |
? |
? |
? |
? |
? |
|
Zend OPcache |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
zip |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
? |
zlib |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
✔ |
- Core enabled (cannot be disabled): ✔
- Enabled (can be disabled): ?
- Available, but disabled (can be enabled): d
PHP modules can be enabled or disabled on demand to reflect the state of your target environment.
Documentation:
Enable/disable PHP modules
Custom PHP Modules
You can also copy any custom modules into mod/(php-fpm)-<VERSION>
and add a custom *.ini
file to load them.
Supported PHP Frameworks
As far as tested there are no limitations and you can use any Framework or CMS just as you would on your live environment. Below are a few examples of extensively tested Frameworks and CMS:
Documentation:
Setup CakePHP |
Setup CodeIgniter |
Setup Contao |
Setup CraftCMS |
Setup Drupal |
Setup Joomla |
Setup Laravel |
Setup Magento |
Setup PhalconPHP |
Setup PhotonCMS |
Setup PrestaShop |
Setup ProcessWire |
Setup Shopware |
Setup Symfony |
Setup Typo3 |
Setup WordPress |
Setup Yii |
Setup Zend
Supported reverse proxied applications
As far as tested there are no limitations and you can use any application that creates an open port.
These ports will be reverse proxied by the web server and even allow you to use valid HTTPS for them.
By the built-in autostart feature of the Devilbox you can ensure that your application automatically
starts up as soon as you run docker-compose up
.
Documentation:
Setup reverse proxy NodeJs |
Setup reverse proxy Sphinx documentation
Intranet overview
The Devilbox comes with a pre-configured intranet on http://localhost
and https://localhost
. This can be explicitly disabled or password-protected. The intranet will not only show you, the chosen configuration, but also validate the status of the current configuration, such as if DNS records exists (on host and container), are directories properly set-up. Additionally it provides external tools to let you interact with databases and emails.
Documentation:
Devilbox Intranet
Screenshots
A few examples of how the built-in intranet looks like.
The Devilbox is still a young project with a long roadmap of features to come. Features are
decided by you - the community, so any kind of contribution is welcome.








To increase visibility and bug-free operation:
- Star this project
- Open up issues for bugs and feature requests
- Clone this project and submit fixes or features
- Visit the Devilbox Community Forums for announcements and to help others
Additionally you can subscribe to Devilbox on CodeTriage,
read up on CONTRIBUTING.md and check the ROADMAP about what is already planned for the near future.
Logos
Logos and banners can be found at devilbox/artwork. Feel free to use or modify them by the terms of their license.
License
MIT License
Copyright (c) 2016 cytopia