Socket.io server for Laravel Echo
246
Docker image of Laravel Echo Server.
$ docker run --name redis -d redis
$ docker run -d \
--name laravel-echo-server \
--link redis:redis \
-e "APP_URL=https://localhost" \
optimistdigital/laravel-echo-server:latest
| Environment variable | Description | Example value |
|---|---|---|
| APP_URL | The base URL where the client app will be served from | https://www.example.com |
laravel-echo-server.json configuration file as Go template:
{
"authHost": "{{.APP_URL}}",
"authEndpoint": "/broadcasting/auth",
"clients": [],
"database": "redis",
"databaseConfig": {
"redis": {
"host": "redis"
}
},
"devMode": false,
"host": null,
"port": "6001",
"protocol": "http",
"socketio": {},
"sslCertPath": "",
"sslKeyPath": "",
"sslCertChainPath": "",
"sslPassphrase": "",
"apiOriginAllow": {
"allowCors": true,
"allowOrigin": "{{.APP_URL}}",
"allowMethods": "GET, POST",
"allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
}
}
Content type
Image
Digest
Size
32.3 MB
Last updated
about 8 years ago
docker pull optimistdigital/laravel-echo-server