1. Create the db user used by the web app
2. Initiate Laravel project beforehand
3. Copy the Dockerfile, docker-compose.yml, and
Docker folder into your main directory of your project
4. Copy Makefile if you want to use shorthand commands for docker commands
Go to ./Docker/default.conf and change the value from '8000' to any other port
Go to sudo nano ./app/Providers/AppServiceProvider.php add this condition to boot() function
\URL::forceScheme('https');
In MySQL ^8.0, the way it handles authentication is different. It is important to change the way MySQL identify user, reverting it back to be identifiable by password. Run in MySQL CLI:
ALTER USER '{your_username}'@'{localhost}'
IDENTIFIED WITH mysql_native_password BY '{your_password}';
make build
make stop
make up
make down
make restart
make ub
make it