- PHP-FPM 7.4
- Nginx 1.9
- MySQL 8
docker-compose up -d
- Create a database in MySQL
- Create .env file in
app
folder and configure database credentails - Access php container by using
docker-compose exec php bash
and runcomposer install
- You can now access your laravel at http://localhost
- username: root
- password: root
The default port (3306) is exposed. Therefore, you can use clients such as MySQL workbench or Table Plus to connect to the database.
docker-compose down
Cheers!!!