EMQX in Docker

Moki Lv6

docker-compose.yml

1
2
3
4
5
6
7
8
services:
mqtt_server:
build: .
environment:
- "EMQX_NAME=emqx"
ports:
- 1883:1883
- 8883:8883

Dockerfile

1
2
3
4
5
6
7
8
9
10
11
12
13
FROM emqx:5.1.6

ENV EMQX_LOG__CONSOLE_HANDLER__LEVEL=debug

ENV EMQX_ALLOW_ANONYMOUS=false

ENV EMQX_NODE__PROCESS_LIMIT=2097152
ENV EMQX_NODE__MAX_PORTS=2097152

#ENV EMQX_LISTENERS__TCP__DEFAULT__ENABLED=false
ENV EMQX_LISTENERS__SSL__DEFAULT__ENABLED=false
ENV EMQX_LISTENERS__WS__DEFAULT__ENABLED=false
ENV EMQX_LISTENERS__WSS__DEFAULT__ENABLED=false
On this page
EMQX in Docker