Laravel echo server docker image based on nodejs 17 and alpine linux
https://github.com/imifarago/docker-laravel-echo-server
https://github.com/tthdvd/laravel-echo-server
https://hub.docker.com/r/imifarago/laravel-echo-server
Listens on 6001.
Mount laravel-echo-server.json
file as bind volume to /app/laravel-echo-server.json
. But do not use different port than 6001 because of health check!
Or set environment variables:
ECHO_AUTH_HOST
Laravel URL (http://localhost)ECHO_AUTH_ENDPOINT
Laravel Auth endpoint path /api/broadcasting/authECHO_APP_ID
random generated app id, it generates when not setECHO_APP_KEY
random generated app key, it generates when not setECHO_DATABASE
redis or sqliteECHO_REDIS_HOST
redis hostname or ip addressECHO_REDIS_PORT
default 6379ECHO_REDIS_KEYPREFIX
redis key prefix, use underscore after, for example: my_app_database_ECHO_REDIS_OPTS_DB
database number in redis to use, default 0ECHO_DEV_MODE
default falseECHO_HOST
default nullECHO_PROTOCOL
default httpECHO_SUBSCRIBER_HTTP
default trueECHO_SUBSCRIBER_REDIS
default trueECHO_API_ORIGIN_CORS
default falseECHO_API_ORIGIN_ALLOW
default empty stringECHO_API_ORIGIN_METHODS
default empty stringECHO_API_ORIGIN_HEADERS
default empty string
docker run --env-file <env> imifarago/laravel-echo-server:latest
docker run --env-file <env> imifarago/laravel-echo-server:whispers
Or instead of --env-file
mount laravel-echo-server.json
into /app/laravel-echo-server.json