Installs a minimal docker environment on Linux systems for already existing Laravel projects:
- php-fpm
- Xdebug
- Mailhog
- MySQL
- phpMyAdmin
- Docker installed
clone
this repository.chmod 0777
on thestorage
folder of your project - needed for the docker user to write data.cd
in your cloned repository folder.cp .env.example .env
- insert the absolute path of your project in the
.env
file. - fill the .env file parameters
- execute
build.sh
- Visit
http://yourhost.local
Launch the commands inside this repository in order to start/stop the containers or perform other actions.
build.sh
- builds and launch the containersup.sh
- starts the containers (once built)down.sh
- stops the containersshell.sh
- opens a command shell inside the container (useful for launchingartisan
commands)
MIT License