Node Docker container with tlaverdure/laravel-echo-server installed. All of the laravel-echo-server environment variables are usable.
docker-compose.yml with the following service definition.echo-server:
image: ghcr.io/clevyr/laravel-echo-server
restart: unless-stopped
/socket.io route
by adding the following env to the proxy service.proxy:
image: ghcr.io/clevyr/caddy
environment:
SOCKETIO_ADDRESS: echo-server:6001
npm install laravel-echo socket.io-client
resources/js/bootstrap.js.import Echo from 'laravel-echo';
window.io = require('socket.io-client');
window.Echo = new Echo({
broadcaster: 'socket.io',
host: window.location.hostname,
});
Refer to the DotEnv section of tlaverdure/laravel-echo-server for an environment variable listing.
Content type
Image
Digest
sha256:072097805…
Size
49.6 MB
Last updated
about 4 years ago
docker pull clevyr/laravel-echo-server