Skip to content

Commit

Permalink
update Mosquitto
Browse files Browse the repository at this point in the history
- add mosquitto.conf (port 1883, anonymous)
  • Loading branch information
madejackson committed Sep 8, 2024
1 parent 91d7b19 commit 4a9da41
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions servapps/mosquitto/cosmos-compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"image": "eclipse-mosquitto:latest",
"container_name": "{ServiceName}",
"restart": "unless-stopped",
"UID": 1000,
"GID": 1000,
"UID": 1000,
"GID": 1000,
"security_opt": [
"no-new-privileges:true"
],
Expand All @@ -21,9 +21,25 @@
"cosmos-auto-update": "true",
"cosmos-icon": "https://aseracorp.github.io/resiSTORE/servapps/mosquitto/icon.png"
},
"ports": [
"1883:1883",
"9001:9001"
"volumes": [
{
"source": "{ServiceName}-config",
"target": "/mosquitto/config",
"type": "volume"
},
{
"source": "{ServiceName}-data",
"target": "/mosquitto/data",
"type": "volume"
},
{
"source": "{ServiceName}-log",
"target": "/mosquitto/log",
"type": "volume"
}
],
"post_install": [
"printf \"listener 1883\\nallow_anonymous true\" > /mosquitto/config/mosquitto.conf"
]
}
}
Expand Down

0 comments on commit 4a9da41

Please sign in to comment.