Deploy Humpback Center

Humpback Center

Humpback Center mainly provides the container scheduling service and container management for all groups.

In the group config page please set the Cluster Mode for the group which need cluster scheduling.

  • Start the Humpback Center
  1. $ docker pull humpbacks/humpback-center:latest
  2. $ docker run -d -ti --net=host --restart=always \
  3. --name=humpback-center \
  4. -e HUMPBACK_SITEAPI=http://192.168.2.80:8012/api \
  5. -e CENTER_LISTEN_PORT=:8589 \
  6. -e CENTER_API_ENABLECORS=true \
  7. -e DOCKER_CLUSTER_URIS=zk://192.168.2.80:2181,192.168.2.81:2181,192.168.2.82:2181 \
  8. -e DOCKER_CLUSTER_NAME=humpback/center \
  9. -v /opt/app/humpback-center/cache:/opt/humpback-center/cache \
  10. -v /opt/app/humpback-center/logs:/opt/humpback-center/logs \
  11. -v /opt/app/humpback-center/data:/opt/humpback-center/data \
  12. humpbacks/humpback-center:latest
  13. $ docker ps -a
  14. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  15. a1640bf8c956 humpbacks/humpback-center:latest "./humpback-center" 15 minutes ago 45 seconds ago humpback-center
  • Environment variables and parameters

HUMPBACK_SITEAPI=http://192.168.2.80:8012/api Humpback-Web site address, pay attention to bring / api.

CENTER_LISTEN_PORT=:8589 The default port for the Humpback Center API is: 8589.

CENTER_API_ENABLECORS=trueWhether the Humpback Center API supports cross-domain access.

DOCKER_CLUSTER_URIS=zk://192.168.2.80:2181,192.168.2.81:2181,192.168.2.82:2181 is the previously configured Zookeeper cluster address information.

DOCKER_CLUSTER_NAME=humpback/center The cluster name. It is consistent with the Humpback Agent configuration.

-v /opt/app/humpback-center/cache Cluster container information persistence directory. It is recommended that you do not manually change and delete.

-v /opt/app/humpback-center/logs System log directory.