<?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[App with multiple endpoints. How to share addons?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm the founder of <a href="https://typebot.io" target="_blank" rel="noopener noreferrer nofollow ugc">https://typebot.io</a>. I'd like to package Typebot for Cloudron.</p>
<p dir="auto">Typebot is basically composed of 2 applications: the builder (chatbot editor) and the viewer (chatbot execution).</p>
<pre><code>version: '3.3'
services:
  typebot-db:
    image: postgres:13
    restart: always
    volumes:
      - db_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=typebot
      - POSTGRES_PASSWORD=typebot
  typebot-builder:
    image: baptistearno/typebot-builder:latest
    restart: always
    depends_on:
      - typebot-db
    ports:
      - '8080:3000'
    extra_hosts:
      - 'host.docker.internal:host-gateway'
    # See https://docs.typebot.io/self-hosting/configuration/builder for more configuration options
    environment:
      - DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
      - NEXTAUTH_URL=&lt;your-builder-url&gt;
      - NEXT_PUBLIC_VIEWER_URL=&lt;your-viewer-url&gt;
      - ENCRYPTION_SECRET=&lt;your-encryption-secret&gt;
      - ADMIN_EMAIL=&lt;your-admin-email&gt;
  typebot-viewer:
    image: baptistearno/typebot-viewer:latest
    restart: always
    ports:
      - '8081:3000'
    # See https://docs.typebot.io/self-hosting/configuration/viewer for more configuration options
    environment:
      - DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
      - NEXT_PUBLIC_VIEWER_URL=&lt;your-viewer-url&gt;
      - ENCRYPTION_SECRET=&lt;your-encryption-secret&gt;
      - NEXTAUTH_URL=&lt;your-builder-url&gt;
volumes:
  db_data:

</code></pre>
<p dir="auto">From what I understand, I'll need to implement 2 distinct Cloudron apps?</p>
<p dir="auto">When it comes to postgresql addons, can I make sure it is shared between the 2 apps?</p>
]]></description><link>https://forum.cloudron.io/topic/9349/app-with-multiple-endpoints-how-to-share-addons</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 22:12:04 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/9349.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Jun 2023 10:04:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Thu, 29 Jun 2023 12:11:13 GMT]]></title><description><![CDATA[<p dir="auto">I left a note in that issue.</p>
]]></description><link>https://forum.cloudron.io/post/69189</link><guid isPermaLink="true">https://forum.cloudron.io/post/69189</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 29 Jun 2023 12:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Wed, 28 Jun 2023 18:38:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lanhild" aria-label="Profile: Lanhild">@<bdi>Lanhild</bdi></a> can you respond with the link to the message from <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> above? (hover over the #13 link)</p>
]]></description><link>https://forum.cloudron.io/post/69138</link><guid isPermaLink="true">https://forum.cloudron.io/post/69138</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 28 Jun 2023 18:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Wed, 28 Jun 2023 16:02:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> FYI <a href="https://github.com/baptisteArno/typebot.io/issues/568" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/baptisteArno/typebot.io/issues/568</a></p>
]]></description><link>https://forum.cloudron.io/post/69128</link><guid isPermaLink="true">https://forum.cloudron.io/post/69128</guid><dc:creator><![CDATA[Lanhild]]></dc:creator><pubDate>Wed, 28 Jun 2023 16:02:43 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Sat, 17 Jun 2023 12:20:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/baptistearno" aria-label="Profile: baptistearno">@<bdi>baptistearno</bdi></a> Man, this is so great. Looks like a lot of work was put in. Awesome job, and thanks for the effort!</p>
]]></description><link>https://forum.cloudron.io/post/68495</link><guid isPermaLink="true">https://forum.cloudron.io/post/68495</guid><dc:creator><![CDATA[staypath]]></dc:creator><pubDate>Sat, 17 Jun 2023 12:20:41 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Wed, 14 Jun 2023 17:27:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/baptistearno" aria-label="Profile: baptistearno">@<bdi>baptistearno</bdi></a> Just saw <a href="https://docs.typebot.io/self-hosting/cloudron" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.typebot.io/self-hosting/cloudron</a> . This is awesome!</p>
<p dir="auto">Are you open to having the app published on the App Store ? If so, I can create a repo in our gitlab, give you permissions as well and we can proceed to get it published. Note that GitLab is only for the cloudron package and not for your app development (which can continue wherever you want).</p>
]]></description><link>https://forum.cloudron.io/post/68314</link><guid isPermaLink="true">https://forum.cloudron.io/post/68314</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 14 Jun 2023 17:27:11 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Fri, 09 Jun 2023 11:25:22 GMT]]></title><description><![CDATA[<p dir="auto">thanks for the work <a class="plugin-mentions-user plugin-mentions-a" href="/user/baptistearno" aria-label="Profile: baptistearno">@<bdi>baptistearno</bdi></a></p>
<p dir="auto">by default each app has a memory limit set at 256MB, in your manifest <code>CloudronManifest.json</code>you can adjust this default value for your app.</p>
<p dir="auto"><a href="https://docs.cloudron.io/packaging/manifest/#memorylimit" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/packaging/manifest/#memorylimit</a></p>
]]></description><link>https://forum.cloudron.io/post/67969</link><guid isPermaLink="true">https://forum.cloudron.io/post/67969</guid><dc:creator><![CDATA[jeau]]></dc:creator><pubDate>Fri, 09 Jun 2023 11:25:22 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Fri, 09 Jun 2023 11:20:05 GMT]]></title><description><![CDATA[<p dir="auto"><strong>EDIT: fixed! I increased the container resources</strong></p>
<p dir="auto">Thank you for the help guys <a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a>, I'm almost there!</p>
<p dir="auto">Now, I have an issue with running the 2 apps using supervisor. Here is the final logs:</p>
<pre><code>Jun 09 12:56:36 ==&gt; Starting supervisor
Jun 09 12:56:37 2023-06-09 10:56:37,243 INFO Included extra file "/etc/supervisor/conf.d/builder.conf" during parsing
Jun 09 12:56:37 2023-06-09 10:56:37,244 INFO Included extra file "/etc/supervisor/conf.d/viewer.conf" during parsing
Jun 09 12:56:37 2023-06-09 10:56:37,244 INFO Set uid to user 0 succeeded
Jun 09 12:56:37 2023-06-09 10:56:37,250 INFO supervisord started with pid 1
Jun 09 12:56:38 2023-06-09 10:56:38,255 INFO spawned: 'builder' with pid 195
Jun 09 12:56:38 2023-06-09 10:56:38,258 INFO spawned: 'viewer' with pid 196
Jun 09 12:56:39 - info Loaded env from /app/code/viewer/apps/viewer/.env.production
Jun 09 12:56:39 2023-06-09 10:56:39,738 INFO success: viewer entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs)
Jun 09 12:56:39 2023-06-09 10:56:39,787 INFO reaped unknown pid 184 (exit status 0)
Jun 09 12:56:39 Listening on port 3001 url: http://b02f726c-1c16-4a23-bfad-9ce3f23df732:3001
Jun 09 12:56:40 - info Loaded env from /app/code/builder/apps/builder/.env.production
Jun 09 12:56:40 2023-06-09 10:56:40,077 INFO success: builder entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs)
Jun 09 12:56:40 =&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.20.229:3000
Jun 09 12:56:43 Listening on port 3000 url: http://b02f726c-1c16-4a23-bfad-9ce3f23df732:3000
Jun 09 13:00:49 - info Loaded env from /app/code/builder/apps/builder/.env.production
email undefined
localstorage undefined
postgresql undefined
</code></pre>
<p dir="auto">It seems to properly launch the 2 apps but then it doesn't succeed in doing the health check.<br />
The server seems to be slow… The logs take some time to load etc… but when I check the resource usage, it is just fine:</p>
<p dir="auto"><img src="/assets/uploads/files/1686308963732-cleanshot-2023-06-09-at-12.59.58-2x-resized.png" alt="CleanShot 2023-06-09 at 12.59.58@2x.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Is the container restricted in terms of resource?</p>
<p dir="auto">Here are the new files: <a href="https://github.com/baptisteArno/typebot.io/pull/550/commits/c307635148b04184d12795614a98cedec81d2d9b" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/baptisteArno/typebot.io/pull/550/commits/c307635148b04184d12795614a98cedec81d2d9b</a></p>
]]></description><link>https://forum.cloudron.io/post/67968</link><guid isPermaLink="true">https://forum.cloudron.io/post/67968</guid><dc:creator><![CDATA[baptistearno]]></dc:creator><pubDate>Fri, 09 Jun 2023 11:20:05 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Wed, 07 Jun 2023 08:55:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/baptistearno" aria-label="Profile: baptistearno">@<bdi>baptistearno</bdi></a> looks like you need to adjust the ENVSH_* variables to something more appropriate to what <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> said.</p>
]]></description><link>https://forum.cloudron.io/post/67832</link><guid isPermaLink="true">https://forum.cloudron.io/post/67832</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 07 Jun 2023 08:55:42 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Wed, 07 Jun 2023 06:50:10 GMT]]></title><description><![CDATA[<p dir="auto">So in Cloudron only the folders <code>/app/data</code>, <code>/run/</code> and <code>/tmp</code>/ are write-able. The app code should remain in read-only storage, but if an app needs to write to disk, then depending on the use-case one of those 3 folders should be symlinked or configured to be used. Note that only <code>/app/data</code> will get backed up.</p>
]]></description><link>https://forum.cloudron.io/post/67825</link><guid isPermaLink="true">https://forum.cloudron.io/post/67825</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 07 Jun 2023 06:50:10 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Wed, 07 Jun 2023 05:57:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> I tried to run the script from the <code>/app/data</code> folder (<a href="https://github.com/baptisteArno/typebot.io/pull/550/commits/6da7ade5dd4a4f24c6185472b66df0715c94c6a5#diff-f04ded0885f91a28ae388b09ec3477ec378337f483257bf22e0eaf813c3704e5" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/baptisteArno/typebot.io/pull/550/commits/6da7ade5dd4a4f24c6185472b66df0715c94c6a5#diff-f04ded0885f91a28ae388b09ec3477ec378337f483257bf22e0eaf813c3704e5</a>) but no luck.</p>
<p dir="auto">Still getting: <code>touch: cannot touch './builder/apps/builder/public/__env.js': Read-only file system</code></p>
<p dir="auto">Did I understand correctly what you suggested?</p>
]]></description><link>https://forum.cloudron.io/post/67824</link><guid isPermaLink="true">https://forum.cloudron.io/post/67824</guid><dc:creator><![CDATA[baptistearno]]></dc:creator><pubDate>Wed, 07 Jun 2023 05:57:57 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Tue, 06 Jun 2023 20:46:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/baptistearno" aria-label="Profile: baptistearno">@<bdi>baptistearno</bdi></a> make sure to se it up to run from <code>/app/data</code> and not <code>/app/code</code></p>
]]></description><link>https://forum.cloudron.io/post/67817</link><guid isPermaLink="true">https://forum.cloudron.io/post/67817</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Tue, 06 Jun 2023 20:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Tue, 06 Jun 2023 16:28:38 GMT]]></title><description><![CDATA[<p dir="auto">Is the container run in read-only mode?</p>
<p dir="auto">My start script need to create a file but I keep getting the error: "touch: cannot touch './builder/apps/builder/public/__env.js': Read-only file system"</p>
<p dir="auto">I tried to specifically enable all modes to that public folder with <code>RUN chmod 777 -R ./builder/apps/builder/public &amp;&amp; chmod 777 -R ./viewer/apps/viewer/public</code>. But that just won't do it.</p>
<p dir="auto">Here are the files: <a href="https://github.com/baptisteArno/typebot.io/pull/550/files" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/baptisteArno/typebot.io/pull/550/files</a></p>
<p dir="auto">Am I missing something?</p>
]]></description><link>https://forum.cloudron.io/post/67810</link><guid isPermaLink="true">https://forum.cloudron.io/post/67810</guid><dc:creator><![CDATA[baptistearno]]></dc:creator><pubDate>Tue, 06 Jun 2023 16:28:38 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Tue, 06 Jun 2023 07:41:57 GMT]]></title><description><![CDATA[<p dir="auto">For this you probably want to use the <code>multiDomain</code> feature <a href="https://docs.cloudron.io/packaging/manifest/#multidomain" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/packaging/manifest/#multidomain</a></p>
<p dir="auto">Or also if one of the two processes can work off a subpath of the same domain, you may add a reverse proxy in the app to proxy pass to the corresponding internal server?</p>
]]></description><link>https://forum.cloudron.io/post/67795</link><guid isPermaLink="true">https://forum.cloudron.io/post/67795</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 06 Jun 2023 07:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Mon, 05 Jun 2023 15:18:54 GMT]]></title><description><![CDATA[<p dir="auto">I don't know the answer but I'd look for clues in the packages of other apps with multiple end points like eg Minio (I think)</p>
]]></description><link>https://forum.cloudron.io/post/67758</link><guid isPermaLink="true">https://forum.cloudron.io/post/67758</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Mon, 05 Jun 2023 15:18:54 GMT</pubDate></item><item><title><![CDATA[Reply to App with multiple endpoints. How to share addons? on Mon, 05 Jun 2023 15:12:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> what is the best way to solve the issue raised by <a class="plugin-mentions-user plugin-mentions-a" href="/user/baptistearno" aria-label="Profile: baptistearno">@<bdi>baptistearno</bdi></a>?</p>
]]></description><link>https://forum.cloudron.io/post/67757</link><guid isPermaLink="true">https://forum.cloudron.io/post/67757</guid><dc:creator><![CDATA[jeau]]></dc:creator><pubDate>Mon, 05 Jun 2023 15:12:41 GMT</pubDate></item></channel></rss>