Commands
A quick run-down of the day-to-day commands for setting up and interacting with the containers.
This environment is, more or less, just a wrapper for docker-compose
with some sparkle sprinkled on top; to make life a little easier we use a Makefile
to wrap up some of the common commands.
Day-to-day, you'll likely use up
, build
, and down
when working with this stack, but the following are available by default:
Command
Value
build
Executes ./www/build.sh
within the context of the web server container.
build-containers
Builds the project containers.
build-xdebug
Builds the project containers, installing XDebug.
build-blakfire
Builds the project containers, installing Blackfire.
build-fresh
Executes ./www/build.sh
within the context of the web server container, passing fresh
as an arg. USeful for starting a build from scratch.
clean
Stop, then remove, all containers.
down
Stop all containers.
restart
Restart all containers.
seed
Executes ./www/seed.sh
within the context of the web server container.
ssh
SSH into the web server container.
ssh-root
SSH into the web server container, as root
.
ssl-create
Creates a new LetsEncrypt SSL certificate.
ssl-renew
Renews an existing LetsEncrypt SSL certificate.
test
Executes ./www/test.sh
within the context of the web server container, useful for running testing suites such as PHPUnit.
test-fresh
Executes ./www/test.sh
within the context of the web server container, triggering a database refresh.
watch
Executes ./www/watch.sh
within the context of the web server container, useful for running scripts which build CSS and JS.
Feel free to add your own, as per your project's needs.
Last updated
Was this helpful?