环境信息
- EMQ X 版本:4.4.1
- 操作系统及版本:centos7
- 其他: docker-compose
问题描述
想问下如何配置docker-compose 使插件自启动
配置文件及日志
这样配置,但是没生效
emqx:
image: emqx/emqx:latest
container_name: emqx_node01
hostname: emqx_node01
volumes:
- /data/iot_lv/emqx/conf/emqx.conf:/opt/emqx/etc/emqx.conf
- /data/iot_lv/emqx/certs/:/opt/emqx/etc/certs/
- /data/iot_lv/emqx/plugins/:/opt/emqx/etc/plugins/
environment:
- EMQX_NAME=node01
- EMQX_LOADED_PLUGINS="emq_auth_mnesia,emqx_management,emqx_recon,emqx_retainer,emqx_rule_engine,emqx_dashboard,emqx_telemetry"
ports:
- 60005:18083
- 1883:1883
- 8883:8883
- 8083:8083
restart: always