Skip to content
letwang edited this page Sep 17, 2019 · 30 revisions

Install

1.Host

127.0.0.1 www.admin.com
127.0.0.1 www.iot.com
127.0.0.1 www.paas.com
127.0.0.1 www.payment.com
127.0.0.1 www.store.com
git clone https://github.com/letwang/HookPHP.git && cd HookPHP &&
git pull && sudo docker run -itd -p 81:80 -p 82:8080 -p 3307:3306 -p 6380:6379 -p 27018:27017 -p 15673:15672 --name hookphp \
-v `pwd`/docker/mongodb/mongod.conf:/etc/mongod.conf \
-v `pwd`/docker/mysql/mysql.cnf:/etc/mysql/conf.d/mysql.cnf \
-v `pwd`/docker/nginx/nginx.conf:/etc/nginx/nginx.conf \
-v `pwd`/docker/nginx/conf.d:/etc/nginx/conf.d \
-v `pwd`/docker/php/7.3/cli/php.ini:/etc/php/7.3/cli/php.ini \
-v `pwd`/docker/php/7.3/fpm/php-fpm.conf:/etc/php/7.3/fpm/php-fpm.conf \
-v `pwd`/docker/php/7.3/fpm/php.ini:/etc/php/7.3/fpm/php.ini \
-v `pwd`/docker/php/7.3/fpm/pool.d:/etc/php/7.3/fpm/pool.d \
-v `pwd`/docker/redis/redis.conf:/etc/redis/redis.conf \
-v `pwd`/docker/log:/var/log \
-v `pwd`/../:/usr/share/nginx/html \
letwang/hookphp zsh && sudo docker exec -it hookphp zsh /usr/share/nginx/html/HookPHP/docker/init.sh

3.Demo

account:	admin@hookphp.com
password:	12345678

Port

MySQL

127.0.0.1
3307
root
123456

Redis

127.0.0.1
6380
123456

MongoDB

127.0.0.1
27018

RabbitMQ

OpenResty

Clone this wiki locally