Docker boilerplate for local development. Provides LAMP (Apache + PHP, MySQL and phpMyAdmin) and Node.js environments.
- Clone repository
- Copy
.env.sample
file to.env
and change environment variables - Edit docker files if needed
- Create web server folders and mysql data folders
- Create ssl folder and generate SSL cert
- Run
docker-compose build
to build Docker images - Copy
docker-compose.yml
file to your project folder and edit as needed - Copy necessary values from
.env
file to.env
file in your project folder - Up environment with
docker-compose up -d
or usedevmode.sh
script
In order to use Xdebug you need to setup XDEBUG_REMOTE_HOST environment variable. You can either set it to your host IP address or setup loopback IP.