This is a development suite for development with PHP. It can be easily deployed with 1 or 2 commands. It includes:
nginx_main
for serving as a proxy server)php72_fpm
, php_latest_fpm
for executing PHP scripts via FastCGI of Nginx)mysql57
, mysql80
database, we have 5.7 for the stable and 8.0 is latest one)phpmyadmin
tool for managing database)For now, this project has been mainly created for Unix (Linux/MacOS)
. Perhaps it could work on Windows.
All requisites should be available for your distribution. The most important are :
Check if docker-compose
is already installed by entering the following command :
which docker-compose
Check Docker Compose compatibility :
yivic-dev-suite
)cd <path/to/project-directory>
# Init the .env file, then you can repair value needed to be updated, or you can copy `.env.example` -> `.env`
./scripts/init-env-file.sh
# Init dev suite, you can add first option for the namespace of dev suite to overwrite the one in .env file
./scripts/init-dev-suite.sh
chmod +x /scripts/init-dev-suite.sh
if you can't execute it
For Mac user, it's better to create it inside your home, e.g <path/to/project-directory>
= ~/workspace/yivic-dev-suite/
docker-compose.yml
of etc/*.conf
or etc/*.ini
files to match your localdocker-compose up -d
host.docker.internal
(for mac), 10.0.2.2
(for docker machine) for the hostname to connect to your main machine./var/www/html
of composer containerdocker-compose run --rm -v /path/to/your/project/folder:/var/www/html php72_cli composer update
docker-compose run --rm -v /path/to/your/project/folder:/var/www/html php72_cli wp plugin list
docker-compose run --rm -v /path/to/your/test/folder:/var/www/html php72_cli phpunit
docker-compose run --rm -v /path/to/your/test/folder:/var/www/html php72_cli codecept
Similar thing if you want to use php_latest (use php_latest_cli instead)
ssdb
is the instancephpssdbadmin
is the GUI manager of SSDB, http://:${PHPSSDBADMIN_WEB_EXPOSING_PORT}, user: admin
, password: password
Any thought, feedback or issues, please put it here https://github.com/manhphuc/yivic-dev-suite/issues