Laradock CLI is a tool for Laravel projects which automates the docker configuration setup for services, amongst other things.
Zero Configuration Docker
Laradock CLI reads your
.env and makes smart assumptions to reduce a lot of boilerplate configuration. Some examples:
- Checks your driver settings and recommends which services are applicable
- Fixes User and Group IDs
- Checks for package.json before installing node in workspace
- Checks your CLI php version for which php version to use
- Modifies the apache2/nginx vhost site URL
- Sets up your MySQL service with a database
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
sudo mv laradock /usr/bin/laradock
laradock installRun the setup tool
- Check the
.env.laradockand the files within
./env/dockerhas the correct configuration for your project.
laradockBuild 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.
laradockThis will start docker with
docker-compose up -dand then mount you on the workspace container.
laradock installAn interactive guide for setting up your project with Laradock CLI.
laradock statusSee which services you're currently using
laradock servicesList all Laradock services
laradock add <service>Add a specific service.
laradock remove <service>Remove a specific service.
laradock workspaceMounts yourself to the workspace container as Laradock user.
laradock uninstallRemove the Laradock CLI files from your project.
docker-compose up -dwith the
docker-compose downwith the
docker-compose buildwith the
docker-compose restartwith the
docker-compose pushwith the
docker-compose execwith the
docker-compose pswith the