Changes between Version 4 and Version 5 of mqttredis
- Timestamp:
- 07/31/22 16:37:47 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
mqttredis
v4 v5 4 4 We can get the whole folder by [attachment:docker-mosquitto-master.tar file] [[br]] 5 5 6 1. get the hash key with following command 6 1. untar [attachment:docker-mosquitto-master.tar file] and run '''docker-compose up -d ''' 7 8 {{{ 9 anunda@Storage1:~/MQTT_REDIS/docker-mosquitto-master$ docker ps 10 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 11 89a4bf87fc23 docker-mosquitto-master_mosquitto "/run.sh mosquitto" About an hour ago Up About an hour 8883/tcp, 0.0.0.0:1883->1883/tcp, 0.0.0.0:9883->9883/tcp, 9001-9002/tcp docker-mosquitto-master_mosquitto_1 12 a05510662c79 redis:5.0.4-alpine "docker-entrypoint.s…" About an hour ago Up About an hour 0.0.0.0:6379->6379/tcp redis-mosq 13 }}} 14 15 2. get the hash key with following command 7 16 {{{ 8 17 krit@mini ~$ docker run -it docker-mosquitto-master_mosquitto np -p mypassword … … 10 19 }}} 11 20 12 2. get the ip address of redis-mosq docker by21 3. get the ip address of redis-mosq docker by 13 22 {{{ 14 23 krit@mini ~$ docker inspect redis-mosq 15 24 }}} 16 25 17 3. add user to redis-mosq with command "set user password" as follow26 4. add user to redis-mosq with command "set user password" as follow 18 27 {{{ 19 28 krit@mini ~$ docker exec -it redis-mosq sh -c 'exec redis-cli -h "192.168.176.2" -p "6379"'