Clean Docker with PHP
Docker with PHP 7.4 fpm, Nginx, Composer, PhpUnit and MariaDB
Starting app
docker-compose up -d
Main page - localhost
Php info
http://localhost:8080/php_info.php
Xdebug info
http://localhost:8080/xdebug_info.php
Running tests
docker-compose run php vendor/bin/phpunit
Namespaces
change namespace "Example" in composer.json line 7 for your project name
Connecting to MySql
- User: user
- Passwd: test-pass
- Port 3307
- DB: test-db
Using PhpUnit in PhpStorm
- PhpUnit By Remote Interpreter
- Provide full docker path to autoloader.php /opt/project/vendor/autoload.php