conti
helps you to interact with your docker development environment. It provides some useful commands to speed up your development based on docker containers.
To install conti
you just have to execute the following command:
composer require egobude/conti
Then you can call it via
vendor/bin/conti
vendor/bin/conti help
bin/conti help
Open a shell and run the setup: bin/conti install docker.dev
Use any domain name here, but make sure to add the corresponding DNS entry. Then you can start your containers via bin/conti up # shortcut to docker-compose up -d
Use bin/conti help
to list all available commands.
If you want to use custom images you can override them via env variable. The following env variables are available:
- CONTI_IMAGE_MARIADB, zeroboh/mariadb:10.1-debian-jessie
- CONTI_IMAGE_NGINX, zeroboh/nginx:1.11-alpine
- CONTI_IMAGE_PHP, zeroboh/php:7.1-fpm-alpine
- CONTI_IMAGE_COMPOSER, composer/composer:1-php5-alpine
To dump your database during development you can call the following command. It will create a new .sql file in the ./mysql-backup folder.
bin/conti mysqldump