Hello, I am trying to figure out what the best approach for deploying Laravel Reverb on fly.io would be. I already have an existing Laravel app running on fly.io
At first, I tried using the same strategy that I used for SSR following this guide:
So I created a reverb process in my fly.toml
[processes]
// ...
app = ''
ssr = 'php /var/www/html/artisan inertia:start-ssr'
reverb = 'php /var/www/html/artisan reverb:start'
But I realized following the SSR approach doesn’t work here because SSR uses the internal fly.io URL to connect on the server side (ssr.process.<app>.internal:13714
). For Reverb, I need my frontend clients to connect to the Reverb server so I need a public URL.
The other approach would be to create another fly app that hosts just Reverb? I’m not sure how to do it because I still want to use the same Laravel project and probably the same Dockerfile but deploy to a different app. I’m also not sure if this is the best approach.