docker run -d
–name emqx1
-v /root/docker/emq/conf/acl.conf:/opt/emqx/etc/acl.conf -v /root/docker/emq/conf/emqx_auth_mysql.conf:/opt/emqx/etc/plugins/emqx_auth_mysql.conf
-e “EMQX_NODE_NAME=emqx@10.12.15.207”
-e “EMQX_HOST=10.12.15.207”
-e “EMQX_CLUSTER__DISCOVERY=static”
-e “EMQX_CLUSTER__STATIC__SEEDS=emqx@10.12.15.207,emqx@10.12.15.208”
-e “EMQX_NODE__COOKIE=abc”
-e “WAIT_FOR_ERLANG=60”
-p 1883:1883
-p 8083:8083
-p 8084:8084
-p 8883:8883
-p 18083:18083
-p 4369:4369
-p 6369:6369
emqx/emqx:v4.1.0
docker run -d
–name emqx2
-v /root/docker/emq/conf/acl.conf:/opt/emqx/etc/acl.conf -v /root/docker/emq/conf/emqx_auth_mysql.conf:/opt/emqx/etc/plugins/emqx_auth_mysql.conf
-e “EMQX_NODE_NAME=emqx@10.12.15.208”
-e “EMQX_HOST=10.12.15.208”
-e “EMQX_CLUSTER__DISCOVERY=static”
-e “EMQX_CLUSTER__STATIC__SEEDS=emqx@10.12.15.207,emqx@10.12.15.208”
-e “EMQX_NODE__COOKIE=abc”
-e “WAIT_FOR_ERLANG=60”
-p 1883:1883
-p 8083:8083
-p 8084:8084
-p 8883:8883
-p 18083:18083
-p 4369:4369
-p 6369:6369
emqx/emqx:v4.1.0
这样子部署集群有问题