Is Windows slowing you down ? Well this Docker stack won't.
Nginxwith exposed awesome vhost supportMariaDBwith data mounted on the folder (say goodbye to missing DBs)Need to destroy your Docker stack, you keep all data, even your DatabasesRediswith data mounted on the folderPHP 7with FPM- Create instance from scratch for about 10 - 15 mins
- Up or halt the instance almost instantly (well 5 secs to be exact)
This stack was based from the Laradock project.
Pretty straightforward
- Clone this repository
- Copy
.env.exampleto just.env - See usage notes for command list
This Docker stack includes easy commands, so you do not need to remember the commands to run or reload things.
If you edit vhosts, for example, you need to reload nginx. If you edit mariadb settings, then you need to reload it.
./bin/startStarts the stack./bin/stopStops the stack./bin/reloadReloads everything, but does not recreate it./bin/reload nginxRecreates nginx instance./bin/reload <service_name>Recreates any service instance
Please check docker-compose.yml on the php-fpm extra host section. You might
need to adjust your extra hosts to match your custom host file for Drupal,
API layer and other sites that connect internally.
On the
.envfile there is aAPPLICATIONvariable which you can set manualy to any folder (although I recommend just to leave) it as it is. This gets mounted to the Docker workspace to the folder/var/www
Simply go to
./services/nginx/sitesas this folder gets mounted on the conf.d of nginx directly. After adding new sites, simply run./bin/reload
Suppose your project resides in
~/Projects/CMS/my-sitethen your vhost entry should be/var/www/CMS/my-site
Make sure to add your server name(s) on
etc/hostsfile (may require sudo privilege)
On your config, you can simply put
mariadbas the hostname of your Database. Default username isrootand password issecret
If you are on Windows, use the static IP and use port 3306. If within the VM, use the static IP defined on the
docker-composefile
- Destroy then initialize the machine
- If it does not solve your problem, Restart your PC 3 times
- If problems persist, fix it, or raise an issue on git