The devilbox is a modern and highly customisable LAMP and MEAN stack replacement based purely on docker and docker-compose running on all major platforms. It supports an unlimited number of projects for which vhosts and DNS records are created automatically.
With devilbox you can test your applications in various versions of PHP, Apache/Nigx and databases.
First, install docker,pip3 and git if they are not installed already
sudo apt-get install docker sudo apt-get install python3-pip sudo apt-get install git
We are going to install install docker-compose with pip:
# remove docker-compose if is installed sudo apt-get remove docker-compose pip3 install docker-composer
Install devilbox (inside a folder that dont require root privileges)
git clone https://github.com/cytopia/devilbox cd devilbox
Prepare your .env file on your flavours
sudo cp env_example .env sudo nano .env # set LOCAL_LISTEN_ADDR = 127.0.0.1:
Before you run it make sure you have stop your running server services, for exmple
sudo service mysql stop sudo service apache2 stop
Run devilbox in devilbox's folder:
docker-compose up -d # to stop it later sudo docker-compose stop