Easily simulate a dev enviroment for your developers, without being bound by platforms (and without using Laravel Homestead or Laravel Valet).
- PHP image running on Apache with extensive addon support and Brotli compression (for best-result speed checks).
- Laravel Horizon for automatic job running
- Redis for caching and jobs
- Mailhog to test mails (auto-configured, just go to
/mailhog/
)
Note that the Laravel Horizon image will always crash if you don't have it installed, which is normal (of course).
- Docker and Docker Compose
- Bash (for the
install
script)
If you don't want to build the images, but rather pull the pre-built ones from GitHub, you'll need a packages access token and log in to GitHub Packages
- Add the project as a submodule to your Laravel project
git submodule add https://github.com/autosiero/docker-laravel.git .docker
- Install the
docker-compose.yml
anddocker-compose.override.yml
files./docker/install
- (optional) configure different ports using
docker-compose.override.yml
- Start your containers
docker-compose up -d
- Visit your Laravel site https://localhost:8080
- Add the project as a submodule to your Laravel project
git submodule add https://github.com/autosiero/docker-laravel.git .docker
- Symlink
./docker-compose.yml
in your project to.docker/docker-compose.yml
- Copy
.docker/docker-compose.override.yml
to./docker-compose.override.yml
- Modify
./docker-compose.override.yml
as you see fit - Start the thing
docker-compose up -d
- Go to http://localhost:8080 (change
8080
if you changed the ports)
Licensed under MIT.