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
installscript)
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 Statamic project
git submodule add https://github.com/autosiero/docker-statamic.git .docker - Install the
docker-compose.ymlanddocker-compose.override.ymlfiles./docker/install - (optional) configure different ports using
docker-compose.override.yml - Start your containers
docker-compose up -d - Visit your Statamic site https://localhost:8080
- Add the project as a submodule to your Statamic project
git submodule add https://github.com/autosiero/docker-statamic.git .docker - Symlink
./docker-compose.ymlin your project to.docker/docker-compose.yml - Copy
.docker/docker-compose.override.ymlto./docker-compose.override.yml - Modify
./docker-compose.override.ymlas you see fit - Start the thing
docker-compose up -d - Go to http://localhost:8080 (change
8080if you changed the ports)
Licensed under MIT.