Skip to content

Starting point for multiple local laravel projects on one machine

Notifications You must be signed in to change notification settings

rufhausen/docker-laravel-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Docker Base (for local projects)

Designed to be a starting point for Docker environments on local machines.

Included Services

  • PHP 7.4
  • MariaDB 10.4
  • Nginx
  • Redis

Installation

Copy the environment variables in .env.example into your .env file. Customize as needed noting that all values defined need to be unique for each project.

Notes

  • MySQL data files are stored on the local file system, not in Docker shared data under docker/mysql/data. Doing so might make it faster on MacOS and allows you to reset Docker shared data without losing your database data.
  • The ./docker-reboot script includes --scale blackfire=0. There is no Blackfire container included, but if there were, this would prevent blackfire from spinning up by default. Might be useful for a container you want to add, but not run automatically.
  • If you use VS Code, you can use the following to configure Xdebug: tasks.json launch.json
  • If you want to run PHPUnit tests with xDebug, and you have some time to kill (it's faster with a local version of PHP), you can run: docker-compose exec php php -d memory_limit=-1 -c ./docker/php/xdebug.ini vendor/bin/phpunit

About

Starting point for multiple local laravel projects on one machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published