-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open up port 6001 for laravel-websockets (php via cli service) #12
Comments
@eminos the way the proxy works, it is proxying port 6001 inside the container to ports 80/443 (or whatever ports you have the proxy bound to) on the host, so what you really want to do is bind it to a DIFFERENT domain than the nginx appserver, like This definitely isn't intuitive when the standard way to run stuff is You can find me in the Lando slack or the Laravel Discord if you have more questions! |
Thank you @dustinleblanc ! I do have some more questions. I wrote to you on the Laravel Discord. (Couldn't get access to Lando Slack.) |
Hey @eminos! I don't see the question, just made sure to login, my username over there is |
After a long chat with Dustin he helped me figure it all out! Thanks Dustin! So for anyone wondering or having the same issue... This is my name: lintex
recipe: laravel
config:
webroot: public
php: '7.4'
ssl: true
composer_version: '2.0.4'
via: nginx
database: mysql:8.0
cache: redis
excludes:
- vendor
proxy:
appserver_nginx:
- lintex.local
websockets:
- ws.lintex.local
services:
database:
type: mysql:8.0
portforward: 3306
creds:
user: lintex
password: lintex
database: lintex
horizon:
type: php:7.4
via: cli
command: /app/lando.horizon.sh
overrides:
depends_on:
- database
websockets:
type: php:7.4
via: cli
ssl: true
command: /app/lando.websockets.sh
scanner: false
overrides:
depends_on:
- database
bindAddress: "0.0.0.0" # that probably goes in your global .lando/config.yml file |
@eminos Thanks for posting an update on this, it was super useful for me! Some additional context I'll add from my own semi-related case, in case it's useful to others:
|
@eminos I know this is an old issue, but do you remember if you started the server by setting a port flag? |
I'm trying to figure out how to run laravel-websockets with lando.
https://beyondco.de/docs/laravel-websockets/getting-started/introduction
laravel-websockets is a PHP CLI Ratchet application running on port 6001.
This is my lando file:
It seems the port 6001 is not accessible from the host.
The websockets service also needs to be accessable from the other services.
The text was updated successfully, but these errors were encountered: