A modern Docker LAMP stack and MEAN stack for local development
A modern Docker LAMP stack and MEAN stack for local development
Quickstart | Examples | Features | The Devilbox Stack | Community | Contributing | Logos | License
The Devilbox is a versatile and highly customisable zero-conf PHP Docker stack supporting LEMP and MEAN as well as Websockets, Node, Python and Golang via automated Reverse Proxy integraton.
The main goal is to provide a reproducible development environment that runs on all major platforms and is able to switch and combine any version you need.
It supports an unlimited number of projects for which vhosts, SSL certificates and DNS records are created automatically.
Email interception and popular development tools will be at your service as well. Configuration is not necessary, as everything is already pre-setup.
All created projects (frontend or backend) will be able to communicate with one another to support the emulation of a complete microservice architecture or an API landscape.
Available Architectures: amd64, arm64
Available PHP Versions: 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2
Docker and Docker Compose:Be up and running in 2 minutes.
Install and Run: Linuxgit clone https://github.com/cytopia/devilboxcd devilboxcp env-example .env:warning: Important: Ensure that nothing is listening on port
80and443on your host system. These ports are required by the Devilbox webserver.
httpd, php and mysql container# This step may take a few minutes as required
# Docker images have to be pulled initially.
# Inside the Devilbox git directory
docker-compose up httpd php mysqlgit clone https://github.com/cytopia/devilboxcd devilboxcp env-example .env:warning: Important: Ensure that nothing is listening on port
80and443on your host system. These ports are required by the Devilbox webserver.
httpd, php and mysql container# This step may take a few minutes as required
# Docker images have to be pulled initially.
# Inside the Devilbox git directory
docker-compose up httpd php mysqlWSL2, refer to the Linux guide instead.
https://github.com/cytopia/devilbox to C:\devilbox with Git for WindowsC:\devilbox\env-example to C:\devilbox.env:warning: Important: Ensure that nothing is listening on port
80and443on your host system. These ports are required by the Devilbox webserver.
Open a terminal on Windows and start httpd, php and mysql container:
httpd, php and mysql container# This step may take a few minutes as required
# Docker images have to be pulled initially.
# Inside the Devilbox git directory
docker-compose up httpd php mysqlThe Devilbox allows you to work on your projects on the host system as well as inside the work container. Your project files will be available at both locations. The workflow ususally is:
node, composer, npm, phpcs, webpack and many more.To enter the work container, simply run ./shell.sh
# Inside the Devilbox git directory
./shell.sh# Inside the Devilbox git directory
./shell.batCreate your first project:
Example: Dummy ProjectStart the container you need:
docker-compose up httpd php mysqlEnter the work container:
./shell.shNavigate to /shared/httpd:
cd /shared/httpdCreate your project directory
mkdir dummy-projectVisit http://localhost/vhosts.php
You will notice that you need to create a htdocs/ directory
Create htdocs/ directory
# Navigate to your project directory
cd /shared/httpd/dummy-project
# Create htdocs dir
mkdir htdocsVisit http://localhost/vhosts.php
You will see that everything is now setup and your project is created and available
Create an index.php file
# Navigate to your project htdocs directory
cd /shared/httpd/dummy-project/htdocs
# Create a simple index.php file
echo '<?php echo "it works";' > index.phpView your project in the browser: http://dummy-project.dvl.to
Find all the examples in the documentation:
The Devilbox tries to be a zero-configuration stack out of the box and has automated all the boring tasks. Additionally it provides common feature required for everyday work.
|
Automation :star: Automated Project creation:star: Automated SSL:star: Automated DNS:star: Host permission sync |
Modes :star: Static files:star: PHP files:star: Reverse Proxy:star: Websockets |
Backends :star: PHP-FPM:star: NodeJS:star: Python:star: Golang:star: ... |
Profiling :star: Blackfire:star: Xdebug:star: XHProf |
|
Projects :star: Unlimited Projects:star: Inter-Project Communication:star: Custom Project domains:star: Valid browser HTTPS |
Intranet :star: Virtual Hosts:star: C&C:star: Email Reader:star: OpCache Gui |
Batteries :star: Adminer:star: phpMyAdmin:star: phpPgAdmin:star: phpRedMind |
Services :star: SQL:star: NoSQL:star: Cache:star: ... |
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 its components and usage.
Smallest stackThis is the smallest possible and fully functional stack you can run |
Full stackTo better understand what is actually possible have a look at the full example |
No open issues yet, or sync has not completed.