<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Loading multiple instances when MM2 is in Docker container]]></title><description><![CDATA[<p dir="auto">So the docker setup I have runs a start_server.sh script and once it his ‘npm run server’ it just shows logging info, meaning it won’t execute anything I put under it (until I kill the running task, I’d assume).</p>
<p dir="auto">I believe the typical method to handle this is by using PM2, but I don’t have that here.</p>
<p dir="auto">So right now I just open the console to the container, change the MM_CONFIG_FILE path to my 2nd config file and execute ‘npm run server’ and close that console window.</p>
<p dir="auto">What’s the best/proper method for me to get them both to launch automatically?</p>
]]></description><link>https://forum.magicmirror.builders/topic/19005/loading-multiple-instances-when-mm2-is-in-docker-container</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 21:29:47 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19005.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Sep 2024 15:54:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Loading multiple instances when MM2 is in Docker container on Tue, 24 Sep 2024 19:54:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiredracing" aria-label="Profile: WiredRacing">@<bdi>WiredRacing</bdi></a> awesome</p>
]]></description><link>https://forum.magicmirror.builders/post/120005</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120005</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 24 Sep 2024 19:54:24 GMT</pubDate></item><item><title><![CDATA[Reply to Loading multiple instances when MM2 is in Docker container on Tue, 24 Sep 2024 19:38:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Ahh, thanks for the education on the &amp;. Working now!</p>
<p dir="auto">Note: I wrote this a couple days ago, just didn’t click ‘submit’. :)</p>
]]></description><link>https://forum.magicmirror.builders/post/120004</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120004</guid><dc:creator><![CDATA[WiredRacing]]></dc:creator><pubDate>Tue, 24 Sep 2024 19:38:35 GMT</pubDate></item><item><title><![CDATA[Reply to Loading multiple instances when MM2 is in Docker container on Mon, 23 Sep 2024 20:51:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiredracing" aria-label="Profile: WiredRacing">@<bdi>WiredRacing</bdi></a> did you get this working?</p>
]]></description><link>https://forum.magicmirror.builders/post/119994</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119994</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 23 Sep 2024 20:51:05 GMT</pubDate></item><item><title><![CDATA[Reply to Loading multiple instances when MM2 is in Docker container on Fri, 20 Sep 2024 22:26:48 GMT]]></title><description><![CDATA[<p dir="auto">and i’ll add, the right way using docker is to spin up another container</p>
]]></description><link>https://forum.magicmirror.builders/post/119939</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119939</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 20 Sep 2024 22:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to Loading multiple instances when MM2 is in Docker container on Fri, 20 Sep 2024 19:18:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiredracing" aria-label="Profile: WiredRacing">@<bdi>WiredRacing</bdi></a> in linux the detach  is a &amp; as the last character  of a command</p>
<p dir="auto">export MM_CONFIG_FILE=…<br />
npm start server &amp;<br />
export MM_CONFIG_FILE=…<br />
npm start &amp;</p>
<p dir="auto">one as server only one as full, just for example</p>
<p dir="auto">in windows its<br />
set MM_CONFIG_FILE=<br />
detach npm run server<br />
set  MM_CONFIG_FILE=<br />
npm start</p>
<p dir="auto">also, not related to docker. docker container is a linux instance</p>
<p dir="auto">if using pm2, you do NOT want to detach the last one, as the script will end, and pm2 will try to restart it</p>
<p dir="auto">maybe same in the docker startup</p>
]]></description><link>https://forum.magicmirror.builders/post/119933</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119933</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 20 Sep 2024 19:18:42 GMT</pubDate></item></channel></rss>