version: '3'
services:
emqx1:
image: emqx/emqx:5.8.9
container_name: emqx1
network_mode: host
environment:
- "EMQX_NODE__COOKIE=emqx-cluster-2026-secret"
- "EMQX_NODE__NAME=emqx1@192.168.0.97"
- "EMQX_NODE_IP=192.168.0.97"
- "EMQX_CLUSTER__DISCOVERY_STRATEGY=static"
- "EMQX_CLUSTER__STATIC__SEEDS=[emqx1@192.168.0.97,emqx2@192.168.0.97]"
- "EMQX_RPC__PORT_DISCOVERY=manual"
- "EMQX_RPC__TCP_SERVER_PORT=5370"
- "EMQX_NODE__DIST_LISTEN_PORT=4370"
healthcheck:
test: [ "CMD", "/opt/emqx/bin/emqx", "ctl", "status" ]
interval: 5s
timeout: 25s
retries: 5
# networks:
# emqx-bridge:
# aliases:
# - node1.emqx.io
ports:
- 1883:1883
- 8083:8083
- 8086:8084
- 8883:8883
- 18083:18083
- 4370:4370
- 5370:5370
# volumes:
# - $PWD/emqx1_data:/opt/emqx/data
dockerexec -it emqx1sh-c"emqx ctl cluster status"Node ‘emqx@192.168.0.97’ not responding to pings.
端口都开放了,使用了 emqx/emqx:5.8.8、 emqx/emqx:5.8.9 、emqx/emqx:5.7.2的镜像都报这个问题,容器内部是可以ping通192.168.0.97
期望得到技术支持