docker-compose.yml
12345678
services: mqtt_server: build: . environment: - "EMQX_NAME=emqx" ports: - 1883:1883 - 8883:8883
Dockerfile
12345678910111213
FROM emqx:5.1.6ENV EMQX_LOG__CONSOLE_HANDLER__LEVEL=debugENV EMQX_ALLOW_ANONYMOUS=falseENV EMQX_NODE__PROCESS_LIMIT=2097152ENV EMQX_NODE__MAX_PORTS=2097152#ENV EMQX_LISTENERS__TCP__DEFAULT__ENABLED=falseENV EMQX_LISTENERS__SSL__DEFAULT__ENABLED=falseENV EMQX_LISTENERS__WS__DEFAULT__ENABLED=falseENV EMQX_LISTENERS__WSS__DEFAULT__ENABLED=false