Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

devilbox

> 数据库
Open source

A modern Docker LAMP stack and MEAN stack for local development

4.5K stars0 likes2 views
WebsiteGitHub

About

A modern Docker LAMP stack and MEAN stack for local development

The Devilbox

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

Quickstart

❗ System Requirements
The Devilbox runs on all major operating systems and its only requirement is Docker and Docker Compose:


  • Docker Engine 17.06.0+
  • Docker Compose 1.16.0+

Be up and running in 2 minutes.

Install and Run: Linux

Linux: Install

  1. Download the Devilbox
    bash
    git clone https://github.com/cytopia/devilbox
  2. Enter the Devilbox git directory
    bash
    cd devilbox
  3. Copy the default environment file
    bash
    cp env-example .env

Linux: Run

:warning: Important: Ensure that nothing is listening on port 80 and 443 on your host system. These ports are required by the Devilbox webserver.


  1. Start httpd, php and mysql container
    bash
    # 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 mysql
  2. Visit http://localhost in your browser

Install and Run: MacOS

MacOS: Install

  1. Download the Devilbox
    bash
    git clone https://github.com/cytopia/devilbox
  2. Enter the Devilbox git directory
    bash
    cd devilbox
  3. Copy the default environment file
    bash
    cp env-example .env

MacOS: Run

:warning: Important: Ensure that nothing is listening on port 80 and 443 on your host system. These ports are required by the Devilbox webserver.


  1. Start httpd, php and mysql container
    bash
    # 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 mysql
  2. Visit http://localhost in your browser

Install and Run: Windows
Note: If you are using WSL2, refer to the Linux guide instead.

Windows: Install

  1. Clone https://github.com/cytopia/devilbox to C:\devilbox with Git for Windows
  2. Copy C:\devilbox\env-example to C:\devilbox.env

Windows: Run

:warning: Important: Ensure that nothing is listening on port 80 and 443 on your host system. These ports are required by the Devilbox webserver.

Open a terminal on Windows and start httpd, php and mysql container:

  1. Start httpd, php and mysql container
    bash
    # 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 mysql
  2. Visit http://localhost in your browser

Enter the work container

Enter the work container

The 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:

  1. Use your prefered IDE (e.g. PhpStorm) on your host system to add and alter files
  2. Work inside the container to run common cli tools such as node, composer, npm, phpcs, webpack and many more.

To enter the work container, simply run ./shell.sh

  1. On Linux, MacOS and Windows with WSL2
    bash
    # Inside the Devilbox git directory
    ./shell.sh
  2. On Windows without WSL2
    bash
    # Inside the Devilbox git directory
    ./shell.bat

Examples

Create your first project:

Example: Dummy Project
  1. Start the container you need:

    bash
    docker-compose up httpd php mysql
  2. Enter the work container:

    bash
    ./shell.sh
  3. Navigate to /shared/httpd:

    bash
    cd /shared/httpd
  4. Create your project directory

    bash
    mkdir dummy-project
  5. Visit http://localhost/vhosts.php
    You will notice that you need to create a htdocs/ directory

  6. Create htdocs/ directory

    bash
    # Navigate to your project directory
    cd /shared/httpd/dummy-project
    
    # Create htdocs dir
    mkdir htdocs
  7. Visit http://localhost/vhosts.php
    You will see that everything is now setup and your project is created and available

  8. Create an index.php file

    bash
    # Navigate to your project htdocs directory
    cd /shared/httpd/dummy-project/htdocs
    
    # Create a simple index.php file
    echo '<?php echo "it works";' > index.php
  9. View your project in the browser: http://dummy-project.dvl.to


Example: PHP Framework

Find all the examples in the documentation:

:star: Features

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 Stack

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 stack

This is the smallest possible and fully functional stack you can run

Full stack

To better understand what is actually possible have a look at the full example

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPapachedevilboxdockerdocker-compose

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库