emqx(docker)

docker-compose.yml

version: '3'

services:
  emqx1:
    image: emqx/emqx:5.3.2
    container_name: emqx
    restart: always
    environment:
      - TZ=Asia/Shanghai
      - "EMQX_NODE_NAME=emqx@node1"
    ports:
      - 1883:1883
      - 8083:8083
      - 8084:8084
      - 8883:8883
      - 18083:18083
    volumes:
      - /emqx/data:/opt/emqx/data
      - /emqx/log:/opt/emqx/log
      - /emqx/cert:/opt/emqx/etc/certs

  

posted @ 2024-01-24 15:48  ahuo  阅读(18)  评论(0编辑  收藏  举报