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:
Is the container restricted in terms of resource?
Here are the new files: https://github.com/baptisteArno/typebot.io/pull/550/commits/c307635148b04184d12795614a98cedec81d2d9b