- Laravel latest version
- PHP FPM 8.2
- Nginx latest
- Mysql latest
git clone https://github.com/zodigancode/docker-laravel.git docker-laravelcd docker-laravel
docker compose up -dYou need to run the following commands from the console of the laravel_php container. To start bash within docker container, use the command:
docker exec -it laravel_php shRun laravel installation with container console:
composer create-project laravel/laravelChange host from localhost to mysql, dbname, username and password set to laravel in .env file