Docker compose build files for PHP/mysql projects.
Docker compose helper scripts for much better developer experience and productivity.
docker-compose.yml
Dockerfile.phpfpm
nginx.conf
php.ini
phpfpm.conf
.bashrc
Start docker container. Build it if it doesn't exist.
- For QR code functionality you must install 'qrencode'
Linux:apt install qrencode
Mac: http://macappstore.org/qrencode/
- For 'auto open in browser' set START\_AUTO\_OPEN=1 in your .env file. Your target browser will the one as returned by running -> ```xdg-settings get default-web-browser``` To set another target browser e.g. -> ```xdg-settings set default-web-browser google-chrome.desktop```
Stop docker container.
Restart docker container.
Bind host terminal to container's terminal.
Sync host user/group with docker container user/group
Remove docker container
Rebuild docker container
Run PHPunit tests
Create backup, remigrate, import from backup...
MYSQL_BACKUP_FOLDER must be set in .env
Usage:
- make backup ->
./docker-remigrate-persist.sh just-backup
- restore from backup ->
./docker-remigrate-persist.sh import-backup my/backup/path
Check for PHP code consistency
Fix PHP code inconsistencies