aissamen/mqtt_clients_img

By aissamen

Updated about 2 years ago

MQTT Client Generator - Generates clients sending fake data (numbers 50-300) to EMQX every second.

Image
Networking
Message queues
Internet of things
0

1.9K

aissamen/mqtt_clients_img repository overview

Example of docker-compose.yml :

services:
  mqtt_clients:
    image: aissamen/mqtt_clients_img
    container_name: mqtt_clients
    command: ["python", "app.py"]
    environment:
      - MQTT_BROKER_URL=emqx
      - MQTT_PUBLISH_TOPIC=power # name of your topic
      - NUM_CLIENTS=5 # change the number of clients here
    depends_on:
      - emqx
    restart: unless-stopped
    networks:
      - emqx_network

  emqx:
    image: emqx/emqx:latest
    container_name: emqx
    ports:
      - "1883:1883"  # MQTT port
      - "8081:8081"
      - "8083:8083"
      - "8084:8084"
      - "8883:8883"
      - "18083:18083"  # Dashboard port
    volumes:
      - 'emqx_data:/opt/emqx/data'
      - 'emqx_log:/opt/emqx/log'
    restart: unless-stopped
    networks:
      - emqx_network

networks:
  emqx_network:
    driver: bridge

volumes: 
  emqx_data:
  emqx_log:

Tag summary

Content type

Image

Digest

sha256:70bea23d7

Size

22.3 MB

Last updated

over 2 years ago

docker pull aissamen/mqtt_clients_img