https://github.com/alvonx/emqx-python
launching emqx server using docker and publishing message to it using python
https://github.com/alvonx/emqx-python
docker emqx python
Last synced: about 2 months ago
JSON representation
launching emqx server using docker and publishing message to it using python
- Host: GitHub
- URL: https://github.com/alvonx/emqx-python
- Owner: alvonx
- Created: 2023-04-07T11:57:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T04:44:28.000Z (about 3 years ago)
- Last Synced: 2025-07-05T06:38:28.375Z (12 months ago)
- Topics: docker, emqx, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EMQX and Python
## Launching EMQX serverwith docker
you will require 2 open ports on the server say (port1 & port2)
launch emqx `sudo docker run -d --name emqx -p port1:18083 -p port2:1883 emqx:latest`
here internal port
**18083** -> **emqx dashboard**
**1883** -> **emqx server**
container created
- login to container
`sudo docker exec -it emqx /bin/sh`
- change password of root(admin) user
`emqx ctl admins passwd admin `
## to access dashboard
http://server-ip:port1 # see above for port1
- create user







## write some python code to publish message to the broker
- install paho-mqtt
`pip install paho-mqtt`
see code `emqx-python.py`