Sign inSign up

2shell/docker-laravel-echo

By 2shell

Updated over 6 years ago

laravel-echo-server in a Docker container

Image
0

3.1K

2shell/docker-laravel-echo repository overview

Laravel Echo Server

Introduction

This is a simple docker container for the Laravel Echo Server.

Configuration

The container is configured to want to use Redis by default. Most configuration can be changed by setting the appropriate environment variables. If you want a more complex config, you can mount it into the container to /opt/laravel-echo-server/laravel-echo-server.json.

Environment Variables

The variables you can modify are:

Variables directly supported by laravel-echo-server
General
VariableDescription
LARAVEL_ECHO_SERVER_AUTH_HOSTThe host of the server that authenticates private and presence channels
LARAVEL_ECHO_SERVER_PORTThe port for the server
LARAVEL_ECHO_SERVER_DEBUGDebug mode
LARAVEL_ECHO_SERVER_REDIS_HOSTRedis host
LARAVEL_ECHO_SERVER_REDIS_PORTRedit port
Running with SSL

The server supports either HTTP or HTTPS (not both simultaenously). If you want to use HTTPS, set the protocol appropriately and specify the certificate, key and any chain certificate using environment variables.

VariableDescription
LARAVEL_ECHO_SERVER_PROTOhttp or https depending on what you want to use
LARAVEL_ECHO_SERVER_SSL_CERTPath to an SSL certificate if using HTTPS
LARAVEL_ECHO_SERVER_SSL_KEYPath to the private key for the SSL certificate
LARAVEL_ECHO_SERVER_SSL_CHAINPath to a chain certificate file
LARAVEL_ECHO_SERVER_SSL_PASSThe passphrase for the private key if required
Additional variables added in this image
General
VariableDescription
ECHO_REDIS_KEY_PREFIXRedis key prefix (default: laravel-echo-server)
ECHO_CLIENTSJSON representing the clients for the server
API Access

There is a simple HTTP API built in, cross|domain access can be configured using environment variables:

VariableDescription
ECHO_ALLOW_CORStrue or false if you want to allow CORS or not
ECHO_ALLOW_ORIGINThe allowed origin for cross-domain comms
ECHO_ALLOW_METHODSHTTP methods that are allowed cross-domain
ECHO_ALLOW_HEADERSThe headers that will be accepted with CORS

Tag summary

Content type

Image

Digest

Size

46.8 MB

Last updated

over 6 years ago

docker pull 2shell/docker-laravel-echo