docker installation hyperf development environment

Installation docker can refer to my article on the blog

You can run the following steps hyperf and development projects:

# Download and run hyperf / hyperf Mirror, mirror project directory and bind to host the / tmp / directory under the skeleton
docker run -v / tmp / skeleton: / hyperf-skwlwton -p 9501: 9501 -it --entrypoint / bin / sh hyperf / hyperf

# Composer is mounted within the vessel
wget https://github.com/composer/composer/releases/download/1.8.6/composer.phar

chmod u+x composer.phar

mv composer.phar /usr/local/bin/composer

# Mirroring the composer set to Ali cloud image
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer
## to install hyperf project with composer
composer-Project hyperf the Create / hyperf-Skeleton
# to enter the directory, according to step hyperf start, you can turn on a service

Published 19 original articles · won praise 0 · Views 3253

Guess you like

Origin blog.csdn.net/Betteryun/article/details/104030426