We supply several helpful commands to get of easily.
./bin/dev COMMAND or just
dev COMMAND if you've added the development to your $PATH.
To control your docker environment.
build [IMAGE]re-build a image
changephpchange current php version
configshow docker-compose configuration
downdestroy your local development environment, will not remove project/mysql files, only containers.
exec [CONTAINER] [OPTIONS]execute commands in a specific container, for instance php or nginx
imagesdisplay used images
- ngrok [HOSTNAME] share your environment with the outside world via ngrok.io
logs [CONTAINER]show logs for a specific container
profileshow some useful commands to add to your SHELL
psshow all running processes
dev update && dev build && dev down && dev up
restart [CONTAINER]restart all or a specific container
runrun one-off commands in new container
setupRun setup for defaults
startstart all exising container, will not create them if they don't exist(use
statusalias for ps
stopstop all running containers
upcreate/build/run all containers, bring your development to live
updateupdate/pull all used images from the web
There are also useful tools.
blackfire curl [URL]The blackfire command to curl pages. Be sure you've setup blackfire correctly
composer5 [COMMANDS]composer docker implementation, also runs in own container.
console5open a console inside your PHP containers.
magerun [COMMANDS]run magerun commands on your Magento projects
magerun2 [COMMANDS]run magerun2 commands on your Magento projects
myroot [OPTIONS]run mysql as root.
mysql [OPTIONS]run mysql as you, current user
mysqldump [OPTIONS]run mysqldump as you, current user
mytoprun mytop as you, current user to monitor MySQL processes
topmonitor your running containers and see how much resources they are eating
php [OPTIONS]run php commands
php-ext-enable [EXTENSION]temporarily enable module for running container, use with
dev exec php php -v
php-ext-disable [EXTENSION]temporarily diable module for running container, use with
dev exec php php -v
You can run these commands from within your workspace directories.
../../../../bin/dev php info.php (or
dev php info.php if you've added the bin directory to your path)
So you can also import data to mysql with
./bin/dev mysql database < dump.sql or dump
./bin/mysqldump database > dump.sql.