https://dandisy.github.io/1.0.4/start.html
docker build -t sharnw/webcore-docker-apache -f Dockerfile .
docker-compose up -d
docker-compose down
docker exec -it web-apache /bin/bash
composer create-project --prefer-dist laravel/laravel <project-name>
composer create-project dandisy/webcore <project-name>
add virtualhost files to vhosts/ e.g.
<VirtualHost *:80>
ServerName dev.webcore
DirectoryIndex index.php
DocumentRoot /var/www/html/webcore-project/public
<Directory />
Order allow,deny
Allow from all
AllowOverride All
</Directory>
<Directory /var/www/html/webcore-project/public/>
Order allow,deny
Allow from all
AllowOverride All
</Directory>
ErrorLog /var/log/php-error.log
</VirtualHost>
PHP has some issues with MySQL 8 which have not been patched yet. The current workaround (laravel/framework#23948) requires updating your config/database.php file:
'connections' => [
'mysql' => [
'driver' => 'mysql',
'host' => env( 'DB_HOST', '127.0.0.1' ),
'port' => env( 'DB_PORT', '3306' ),
'database' => env( 'DB_DATABASE', 'forge' ),
'username' => env( 'DB_USERNAME', 'forge' ),
'password' => env( 'DB_PASSWORD', '' ),
'unix_socket' => env( 'DB_SOCKET', '' ),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
'modes' => [
'ONLY_FULL_GROUP_BY',
'STRICT_TRANS_TABLES',
'NO_ZERO_IN_DATE',
'NO_ZERO_DATE',
'ERROR_FOR_DIVISION_BY_ZERO',
'NO_ENGINE_SUBSTITUTION',
],
],
],