## NOTE:
## This config file overrides data/configs/cluster.hocon,
## and is merged with environment variables which start with 'EMQX_' prefix.
##
## Config changes made from EMQX dashboard UI, management HTTP API, or CLI
## are stored in data/configs/cluster.hocon.
## To avoid confusion, please do not store the same configs in both files.
##
## See https://www.emqx.io/docs/en/v5.0/configuration/configuration.html for more details.
## Configuration full example can be found in etc/examples
node {
## name = "emqx@127.0.0.1"
name = "emqx@192.168.12.5"
cookie = "46fb19e6999c4c64be0acf94b96325c6"
data_dir = "data"
}
cluster {
## Human-friendly name of the EMQX cluster.
name = emqxcl
## Service discovery method for the cluster nodes
discovery_strategy = static
## If true, the node will try to heal network partitions automatically
autoheal = true
## List EMQX node names in the static cluster
## static.seeds = [[192.168.12.6 192.168.12.5]]
static.seeds = ["emqx@192.168.12.6","emqx@192.168.12.5"]
}
dashboard {
listeners.http {
bind = 18083
}
}
run command:
docker stack deploy -c emqx-stack.yaml emqx
Anything else we need to know?
Using a docker swarm cluster, my environment only has two nodes
What happened?
emqx does not appear to use docker mounted configuration files
What did you expect to happen?
I hope you can help me see if my use is wrong
How can we reproduce it (as minimally and precisely as possible)?
docker-stack.yaml
emqx.conf
run command:
Anything else we need to know?
Using a docker swarm cluster, my environment only has two nodes
EMQX version
OS version
Log files
I don't have node_dump files, just docker logs