<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.n4vx.net/index.php?action=history&amp;feed=atom&amp;title=Mosquitto_MQTT_Broker_with_Docker_Compose</id>
	<title>Mosquitto MQTT Broker with Docker Compose - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.n4vx.net/index.php?action=history&amp;feed=atom&amp;title=Mosquitto_MQTT_Broker_with_Docker_Compose"/>
	<link rel="alternate" type="text/html" href="https://wiki.n4vx.net/index.php?title=Mosquitto_MQTT_Broker_with_Docker_Compose&amp;action=history"/>
	<updated>2026-12-06T09:25:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.13</generator>
	<entry>
		<id>https://wiki.n4vx.net/index.php?title=Mosquitto_MQTT_Broker_with_Docker_Compose&amp;diff=778&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;==How to setup standalone mosquitto MQTT broker using docker-compose==  create &lt;code&gt;docker-compose.yml&lt;/code&gt;  version: &quot;3&quot;    services:      mosquitto:        image: eclipse...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.n4vx.net/index.php?title=Mosquitto_MQTT_Broker_with_Docker_Compose&amp;diff=778&amp;oldid=prev"/>
		<updated>2022-12-27T01:57:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==How to setup standalone mosquitto MQTT broker using docker-compose==  create &amp;lt;code&amp;gt;docker-compose.yml&amp;lt;/code&amp;gt;  version: &amp;quot;3&amp;quot;    services:      mosquitto:        image: eclipse...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==How to setup standalone mosquitto MQTT broker using docker-compose==&lt;br /&gt;
&lt;br /&gt;
create &amp;lt;code&amp;gt;docker-compose.yml&amp;lt;/code&amp;gt;&lt;br /&gt;
 version: &amp;quot;3&amp;quot;&lt;br /&gt;
   services:&lt;br /&gt;
     mosquitto:&lt;br /&gt;
       image: eclipse-mosquitto&lt;br /&gt;
       network_mode: host&lt;br /&gt;
       volumes:&lt;br /&gt;
         - ./conf:/mosquitto/conf&lt;br /&gt;
         - ./data:/mosquitto/data&lt;br /&gt;
         - ./log:/mosquitto/log&lt;br /&gt;
&lt;br /&gt;
Now create &amp;lt;code&amp;gt;./conf/mosquitto.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
 persistence true&lt;br /&gt;
 persistence_location /mosquitto/data/&lt;br /&gt;
 log_dest file /mosquitto/log/mosquitto.log&lt;br /&gt;
 listener 1883&lt;br /&gt;
 ## Authentication ##&lt;br /&gt;
 # allow_anonymous false&lt;br /&gt;
 password_file /mosquitto/conf/mosquitto.passwd&lt;br /&gt;
&lt;br /&gt;
Now create the first user by running the command&lt;br /&gt;
 docker-compose exec mosquitto mosquitto_passwd -c /mosquitto/conf/mosquitto.passwd mosquitto SuperSecretPa55wordText&lt;br /&gt;
You can optionally create more users using the -b (batch) flag instead of -c , supplying the password on the command line:&lt;br /&gt;
 docker-compose exec mosquitto mosquitto_passwd -b /mosquitto/conf/mosquitto.passwd seconduser AnotherSuperSecretPa55wordText&lt;br /&gt;
Now start mosquitto using&lt;br /&gt;
 docker-compose up&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>