File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525echo " Only usable from within a hackstack container. To use externally, replace 'mosquitto' with the name or IP address or name of this server"
2626
2727echo " creating user:"
28- CMD=" docker compose -f ../docker-compose.yml exec mosquitto mosquitto_passwd -b /mosquitto/config /mos_passwd ${USER} ${PASSWORD} "
28+ CMD=" docker compose -f ../docker-compose.yml exec mosquitto mosquitto_passwd -b /mosquitto/data /mos_passwd ${USER} ${PASSWORD} "
2929echo " ${CMD} "
3030if $CMD ; then
3131 echo " successful"
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ services:
1515 - .env
1616 # Auth broker: use MOSQUITTO_HEALTHCHECK_* from .env (must match mos_passwd; needs $SYS read in ACLs if you use acl_file).
1717 healthcheck :
18+ # 'mosquitto_sub -h localhost -p 1883 -u "$$MOSQUITTO_HEALTHCHECK_USERNAME" -P "$$MOSQUITTO_HEALTHCHECK_PASSWORD" -t "$$SYS/broker/uptime" -C 1 -W 5 || exit 1',
1819 test :
1920 [
2021 " CMD-SHELL" ,
21- ' mosquitto_sub -h localhost -p 1883 -u "$$ MOSQUITTO_HEALTHCHECK_USERNAME" -P "$$ MOSQUITTO_HEALTHCHECK_PASSWORD" -t "$$SYS/broker/uptime" -C 1 -W 5 || exit 1' ,
22+ ' mosquitto_sub -h localhost -p 1883 -u "${ MOSQUITTO_HEALTHCHECK_USERNAME} " -P "${ MOSQUITTO_HEALTHCHECK_PASSWORD} " -t "$$SYS/broker/uptime" -C 1 -W 5 || exit 1' ,
2223 ]
2324 interval : 30s
2425 timeout : 10s
You can’t perform that action at this time.
0 commit comments