Skip to content

Latest commit

 

History

History
executable file
·
20 lines (15 loc) · 603 Bytes

README.md

File metadata and controls

executable file
·
20 lines (15 loc) · 603 Bytes

docker-laravel

docker-compose up -d or make start etc.

  • nginx - :80
  • mysql - :3306
  • php - :9000
  • redis - :6379
  • phpmyadmin - :8082
  • mailhog - :8025

Three additional containers Composer, NPM, and Artisan commands e.g.:

  • docker-compose run --rm composer update
  • docker-compose run --rm npm run dev
  • docker-compose run --rm artisan migrate

.env : need to change the DB_HOST variable and specify the service that will run MySQL in it. In our case, we used the "mysql" service name. Hence DB_HOST=mysql

laravel9: need to choose vite or mix