创建docker-compose.yml

version: '3'
services: 
  emqx: 
    image: emqx/emqx
    container_name: emqx
    ports: 
      - "1883:1883" 
      - "8083:8083"
      - "8883:8883"
      - "8084:8084"
      - "18083:18083"

启动命令:docker-compose up -d

停止服务栈并删除相关资源:docker-compose down

重启服务栈:docker-compose restart

http://ip:18083  默认账号:admin 密码:public

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐