Add config for SMTP server in gerrit.config at [sendemail] section, and the password for your configed email in secure.config at [sendemail] section.
You can change the server name (review.test.netease.com) in docker-compose.yaml and nginx.conf and gerrit.config to your custom server name(your-configed-server-name).
docker-compose up -d postgresUncomment in docker-compose.yaml the Gerrit init step entrypoint and run Gerrit with docker-compose in foreground.
docker-compose up gerritWait until you see in the output the message Initialized /var/gerrit and then the container will exit.
Note: Maybe you need to change the owner of directory gerrit to the user used by the gerrit image in some system (Debian for example), use docker run --rm $image_name id $user to get the uid and gid.
See Docker Gerrit Guide for complete instructions.
Comment out the gerrit init entrypoint in docker-compose.yaml and start all the docker-compose nodes:
docker-compose up -dYou can access Gerrit at http://your-configed-server-name/gerrit (or http://your-configed-server-name/) and Jenkins in http://your-configed-server-name/jenkins.
See Gerrit Trigger.