Sign inSign up

ycj520/code-review

By ycj520

Updated about 6 years ago

Quickly build CR(Code Review) platform.

Image
0

102

ycj520/code-review repository overview

Quickly build CR(Code Review) platform.

How to use ?

step 1:

docker network create --driver=bridge --subnet=192.168.88.0/24 --gateway=192.168.88.1 cr-network

step 2:

docker run -itd -p 3306:3306 --name cr-mysql --net cr-network --ip 192.168.88.36 ycj520/code-review:mysql.1.0.0

step 3:

docker run -itd -p 80:80 -p 443:443 -p 2222:22 -p 9000:9000 --env PHABRICATOR_HOST=code.ngrok2.xiaomiqiu.cn --env MYSQL_HOST=192.168.88.36 --env MYSQL_USER=root --env MYSQL_PASS=root --env PHABRICATOR_REPOSITORY_PATH=/repos -v C:/data/repos:/repos --name cr-phabricator  --net cr-network --ip 192.168.88.43 ycj520/code-review:phabricator.1.0.0

Note: "code.ngrok2.xiaomiqiu.cn" is the domain name, or you can modify it to the public IP of the host.

step 4:

Visit the domain name or host IP to complete the configuration and manage your own Code Review platform.

More features

docker exec -it cr-phabricator bash
cd /srv/phabricator/phabricator/

./bin/config set metamta.default-address [email protected]
./bin/config set metamta.domain code.ngrok2.xiaomiqiu.cn
./bin/config set metamta.can-send-as-user false
./bin/config set metamta.mail-adapter PhabricatorMailImplementationPHPMailerAdapter
./bin/config set phpmailer.mailer smtp
./bin/config set phpmailer.smtp-host smtp.qq.com
./bin/config set phpmailer.smtp-port 465
./bin/config set phpmailer.smtp-user [email protected]
./bin/config set phpmailer.smtp-password my_password
./bin/config set phpmailer.smtp-protocol SSL

./bin/mail send-test --to [email protected] --subject Hello <README.md

Tag summary

Content type

Image

Digest

Size

531.3 MB

Last updated

about 6 years ago

docker pull ycj520/code-review:phabricator.1.0.0