docker deployment HFish (cluster deployment)

The master node deployment:

docker run -d --name hfish-master -p 21:21 -p 24:22 -p 23:23 -p 80:80 -p 3306:3306 -p 6379:6379 -p 7879:7879 -p 8000:8000 -p 8080:8080 -p 8989:8989 -p 9000:9000 -p 9001:9001 -p 11211:11211 --restart=always imdevops/hfish:latest

Customer terminal node deployment

docker run -d --name hfish-client -p 21:21 -p 22:22 -p 23:23 -p 3306:3306 -p 6379:6379 -p 8080:8080 -p 8989:8989 -p 9000:9000 -p 11211:11211 -e CLUSTER_IP=master_ip:7879 -e NODE_NAME=clinet --restart=always  imdevops/hfish:latest
  • 7879 cluster communication RPC port
  • CLUSTER_IP environment variable for the cluster master node IP address
  • NODE_NAME environment variable to the name of the client node, cluster unique, can not be duplicated

Instructions for use:

  • In subsequent use, or code To modify the configuration file. Command into the container using the following modifications:
  •     docker exec -it container name sh
  • Installation path: / opt / hfish
  • Modify the need to restart the program to take effect, the container can reboot directly
  • Web Demo offers the only function for display use, can be modified as needed
  • Upgrade deployment requires docker rmi imdevops / hfish: latest remove the local mirror, mirror pull the latest to take

Guess you like

Origin www.cnblogs.com/yyxianren/p/12049433.html