Public | Automated Build

Last pushed: a year ago
Short Description
Docker for emqtt
Full Description

Docker for emqtt

2015-11-17 Update

Use Docker Network

docker network create --subnet=10.0.1.0/24 --ip-range=10.0.1.0/24 --gateway=10.0.1.254 mqtt
docker run -d --name node1 --net=mqtt --env="constraint:node==mhs-demo0" -e NODE_IP=10.0.1.1 -p 1883:1883 -p 8883:8883 -p 8083:8083 philipz/emqtt
docker run -d --name node2 --net=mqtt --env="constraint:node==mhs-demo1" -e NODE_IP=10.0.1.2 -e MASTER=10.0.1.1 -p 1883:1883 -p 8883:8883 -p 8083:8083 philipz/emqtt

How to use

Install docker network tool to fix IP address

Weave or Calico

First Node

docker run -d --name node1 -e NODE_IP=<YOUR_SERVER_IP> -p 1883:1883 -p 8883:8883 -p 8083:8083 philipz/emqtt

Second Node and more

docker run -d --name node2 -e NODE_IP=<YOUR_SERVER_IP> -e MASTER=<FIRST_NODE_IP> -p 1883:1883 -p 8883:8883 -p 8083:8083 philipz/emqtt

Docker Pull Command
Owner
philipz
Source Repository

Comments (0)