Skip to content

lib4u/docker-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel + Nginx + Mysql in docker template

  • Laravel latest version
  • PHP FPM 8.2
  • Nginx latest
  • Mysql latest

Get this template

git clone https://github.com/zodigancode/docker-laravel.git docker-laravel
cd docker-laravel
docker compose up -d

You 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 sh

Run laravel installation with container console:

composer create-project laravel/laravel

Change host from localhost to mysql, dbname, username and password set to laravel in .env file