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
$ docker pull humpbacks/humpback-center:latest
$ docker run -d -ti --net=host --restart=always \
--name=humpback-center \
-e HUMPBACK_SITEAPI=http://192.168.2.80:8012/api \
-e CENTER_LISTEN_PORT=:8589 \
-e CENTER_API_ENABLECORS=true \
-e DOCKER_CLUSTER_URIS=zk://192.168.2.80:2181,192.168.2.81:2181,192.168.2.82:2181 \
-e DOCKER_CLUSTER_NAME=humpback/center \
-v /opt/app/humpback-center/cache:/opt/humpback-center/cache \
-v /opt/app/humpback-center/logs:/opt/humpback-center/logs \
-v /opt/app/humpback-center/data:/opt/humpback-center/data \
humpbacks/humpback-center:latest
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
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=true
Whether 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.