Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create new users in the broker? #18

Open
vish30 opened this issue Feb 25, 2019 · 2 comments
Open

How to create new users in the broker? #18

vish30 opened this issue Feb 25, 2019 · 2 comments

Comments

@vish30
Copy link

vish30 commented Feb 25, 2019

How to create multiple users in Redis back-end after the docker container is up ?

@jllopis
Copy link
Owner

jllopis commented Mar 9, 2019

You can start a new docker container and link it to the redis backend, launching the redis-cli.

Assuming that you are using the provided docker-compose.yml file which defines mosq-net network, you can:

$ sudo docker run -it --link redis-mosq:redis --rm --network docker-mosquitto_mosqnet redis:5.0.3-alpine sh -c 'exec redis-cli -h "redis"'

Note that the network in the command line is prepended with the name assigned by docker-compose.

Now you have a prompt in your cli which is connected to the deployed redis server.

@vish30
Copy link
Author

vish30 commented Mar 15, 2019

I had already did this. On creating more entries in the redis db, only the first entry is allowed an MQTT connect. All the entries which are added later give a Connection refused error when tried to connect with the broker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants