Рет қаралды 2,219
Sigamos con nuestras instalaciones.
Los comandos que nesitas son:
mkdir -p /var/data/emqx/data
rmkdir -p /var/data/emqx/log
chown -R 1000 /var/data/emqx
y el texto a añadir al stack seria:
emqx:
image: emqx/emqx:latest
container_name: emqx-MQTT
restart: always
ports:
"18083:18083"
18084:18084
1883:1883
8883:8883
8083:8083
8084:8084
8081:8081
environment:
EMQX_ALLOW_ANONYMOUS: "true"
EMQX_NOMATCH: "deny"
EMQX_LOADED_PLUGINS: "emqx_recon,emqx_retainer,emqx_management,emqx_dashboard,emqx_auth_mnesia"
volumes:
/var/data/emqx/data:/opt/emqx/data
/var/data/emqx/log:/opt/emqx/log