A sweet Docker setup for Vanilla Forums
Only supports Mac OSX at the moment but everything can be easily adapted to work on other platforms. Assume that you are using PhpStorm as your IDE.
This repository contains a ready-for-development environment to develop against Vanilla.
SQL database.
Apache 2 web server.
nginx web server
php-fpm with PHP 7.4 and rsyslogd.
The php-fpm container comes in two flavours, standard
and xdebug
.
The nginx container takes care of routing the request to the appropriate php-fpm flavour based on if your request needs debugging or not.
When XDebug is running things are much slower. As a result it recommended not pass an XDebug cookie (normally through a browser extension) unless you are actively debugging.
https://success.vanillaforums.com/kb/articles/155-local-setup-quickstart
See Make Xdebug work with PhpStorm.
See Make unit tests work within PhpStorm.
Q. Why is everything so slow?
A. You are probably running on the APFS file system that became the standard with macOS High Sierra and which has pretty bad performance with Docker for Mac. Having the database on your host instead of inside docker might help a lot. See #10.