laradock
laravel 5.8+
// 啟動服務
docker-compose up -d php-worker nginx redis laravel-echo-server
// 檢視連線資訊
docker-compose up laravel-echo-server
channel 頻道名稱 push 被修改為了 laravel_database_push
坑的原因是,laravel5.8 redis 配置項 增加了字首,導致廣播名稱 增加了字首
私有庫docker 中 nginx 埠轉發問題
laravel-echo-server_1 | [7:25:15 AM] - Error authenticating vEPeXnoPftTmzXWJAAAB for private-privatePush.1
laravel-echo-server_1 | Error: connect ECONNREFUSED 127.0.0.1:80
laravel-echo-server_1 | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1056:14) {
laravel-echo-server_1 | errno: 'ECONNREFUSED',
laravel-echo-server_1 | code: 'ECONNREFUSED',
laravel-echo-server_1 | syscall: 'connect',
laravel-echo-server_1 | address: '127.0.0.1',
laravel-echo-server_1 | port: 80
laravel-echo-server_1 | }
laravel-echo-server_1 | Error sending authentication request.
解決方案laravel-echo-server
"authHost": "http://nginx",
修改後需要重新構建
docker-compose build laravel-echo-server
本作品採用《CC 協議》,轉載必須註明作者和本文連結