~jiyu/Laravel-Docker

Jiyu's custom Docker setup for Laravel projects for quickly setting up development environments.
Updated to PHP 8.1
Added newer version of nodejs
Update README

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~jiyu/Laravel-Docker
read/write
git@git.sr.ht:~jiyu/Laravel-Docker

You can also use your local clone with git send-email.

This is my Docker setup for quickly creating developer environments for Laravel projects.

Includes everything needed for most Laravel projects, such as:

  • PHP-FPM
  • NGINX
  • MySQL (Percona)
  • Composer
  • NPM

#Usage

  1. Create a .env file using the example provided in .env.example.
  2. Git clone your Laravel project in the root of this repository as project. For example: git clone <url> project.
  3. Build and run the containers using docker-compose up -d.
  4. SSH into the console container using docker exec -it laravel-docker_console_1 /bin/bash.
  5. In here you can do all the usual Laravel installation steps, create laravel .env file, composer install, php artisan migrate, etc.
  6. Add the docker ip address to your hosts file (usually 192.168.10.10) so you can access the Laravel installation using your local browser.
  7. Your Laravel development environment is now up and running.