Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
B

baptistearno

@baptistearno
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • App with multiple endpoints. How to share addons?
    B baptistearno

    EDIT: fixed! I increased the container resources

    Thank you for the help guys @robi @nebulon, I'm almost there!

    Now, I have an issue with running the 2 apps using supervisor. Here is the final logs:

    Jun 09 12:56:36 ==> 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 > 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 > than 1 seconds (startsecs)
    Jun 09 12:56:40 => 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
    

    It seems to properly launch the 2 apps but then it doesn't succeed in doing the health check.
    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:

    CleanShot 2023-06-09 at 12.59.58@2x.png

    Is the container restricted in terms of resource?

    Here are the new files: https://github.com/baptisteArno/typebot.io/pull/550/commits/c307635148b04184d12795614a98cedec81d2d9b

    App Packaging & Development

  • App with multiple endpoints. How to share addons?
    B baptistearno

    @robi I tried to run the script from the /app/data folder (https://github.com/baptisteArno/typebot.io/pull/550/commits/6da7ade5dd4a4f24c6185472b66df0715c94c6a5#diff-f04ded0885f91a28ae388b09ec3477ec378337f483257bf22e0eaf813c3704e5) but no luck.

    Still getting: touch: cannot touch './builder/apps/builder/public/__env.js': Read-only file system

    Did I understand correctly what you suggested?

    App Packaging & Development

  • App with multiple endpoints. How to share addons?
    B baptistearno

    Is the container run in read-only mode?

    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"

    I tried to specifically enable all modes to that public folder with RUN chmod 777 -R ./builder/apps/builder/public && chmod 777 -R ./viewer/apps/viewer/public. But that just won't do it.

    Here are the files: https://github.com/baptisteArno/typebot.io/pull/550/files

    Am I missing something?

    App Packaging & Development

  • App with multiple endpoints. How to share addons?
    B baptistearno

    Hi,

    I'm the founder of https://typebot.io. I'd like to package Typebot for Cloudron.

    Typebot is basically composed of 2 applications: the builder (chatbot editor) and the viewer (chatbot execution).

    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=<your-builder-url>
          - NEXT_PUBLIC_VIEWER_URL=<your-viewer-url>
          - ENCRYPTION_SECRET=<your-encryption-secret>
          - ADMIN_EMAIL=<your-admin-email>
      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=<your-viewer-url>
          - ENCRYPTION_SECRET=<your-encryption-secret>
          - NEXTAUTH_URL=<your-builder-url>
    volumes:
      db_data:
    
    

    From what I understand, I'll need to implement 2 distinct Cloudron apps?

    When it comes to postgresql addons, can I make sure it is shared between the 2 apps?

    App Packaging & Development
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search