⚠️ This project is no longer maintined or actively developed. Feel free to fork it and play around if you’re interested in the idea.
Laradock CLI is a tool for Laravel projects which automates the docker configuration setup for services, amongst other things.
It is built with Laravel Zero, on top of Laradock.
Laradock CLI reads your .env and makes smart assumptions to reduce a lot of boilerplate configuration. Some examples:
Laradock tends to have a larger footprint for the amount of code you use in your repository, Laradock CLI
aims to fix this my only including the files for the services you are using.
All docker environment variables have been moved to their own .env.laradock file. No longer have a 300 line .env file.
Simple command to add or remove services, Laradock CLI takes care of all the heavy lifting of setting up files, updating configuration, etc.
This project is in early development and has lots of planned updates coming.
wget https://github.com/loonpwn/laradock-cli/releases/download/0.4.5/laradock
chmod +x ./laradock
Recommended: sudo mv laradock /usr/bin/laradock
laradock install Run the setup tool.env.laradock and the files within ./env/docker has the correct configuration for your project.laradock Build and run the containers and then mount to the workspace container.Currently the following services have been setup to be automatically configured. If you use a service outside this list
you will need to manually set it up per Laradock documentation.
laradockdocker-compose up -d and then mount you on the workspace container.laradock installlaradock statuslaradock serviceslaradock add <service>laradock remove <service>laradock workspacelaradock uninstalllaradock updocker-compose up -d with the .env.laradock loaded in.laradock downdocker-compose down with the .env.laradock loaded in.laradock builddocker-compose build with the .env.laradock loaded in.laradock restartdocker-compose restart with the .env.laradock loaded in.laradock pushdocker-compose push with the .env.laradock loaded in.laradock execdocker-compose exec with the .env.laradock loaded in.laradock psdocker-compose ps with the .env.laradock loaded in.