Repository of oanhnn/laravel-echo-server Docker image.
Alpine based Laravel Echo Server image.
latest - 2.1.0node:10-alpine imagelaravel-echo-serverRun laravel-echo-server by command
$ docker run -d -p 6001:6001 -v $(pwd):/app oanhnn/laravel-echo-server
If /app/laravel-echo-server.json is exists, it will be loaded
If /app/laravel-echo-server.json isn't exists, it will be generated from default configs with laravel-echo-server.
If /app/laravel-echo-server.json isn't exists and you want it will be generated by another process,
please set environment variable GENERATE_CONFIG to false (default true).
$ docker run -d -p 6001:6001 -v $(pwd):/app -e "GENERATE_CONFIG=false" oanhnn/laravel-echo-server
Using database be configured by environment variable LARAVEL_ECHO_SERVER_DB (default is redis).
By default, Redis database will be used. You can set Redis config by environment variables:
"databaseConfig": {
"redis": {
"host": "REDIS_HOST",
"port": "REDIS_PORT",
"keyPrefix": "REDIS_KEY_PREFIX",
"options": {
"db": "REDIS_DB_BACKEND"
}
},
"sqlite": {}
},
| Environment variable | Default value |
|---|---|
REDIS_HOST | redis |
REDIS_PORT | 6379 |
REDIS_KEY_PREFIX | laravel_database_ |
REDIS_DB_BACKEND | 0 |
You can use SQLite database by set environment variable LARAVEL_ECHO_SERVER_DB to sqlite.
The SQLite file will store in /app/database/
$ docker run -d -p 6001:6001 -v $(pwd):/app -e "LARAVEL_ECHO_SERVER_DB=sqlite" oanhnn/laravel-echo-server
If some environment variables are existed (allow load /app/.env file is found), the following options can be overridden:
| Environment variable | Config key | Note |
|---|---|---|
LARAVEL_ECHO_SERVER_AUTH_HOST | authHost | This option will fall back to the LARAVEL_ECHO_SERVER_HOST option as the default if that is set. |
LARAVEL_ECHO_SERVER_HOST | host | |
LARAVEL_ECHO_SERVER_PORT | port | |
LARAVEL_ECHO_SERVER_DEBUG | devMode |
See more about laravel-echo-server.json in here
$ docker run --rm -it -v $(pwd):/app oanhnn/laravel-echo-server init
$ docker run --rm -it -v $(pwd):/app oanhnn/laravel-echo-server start
$ docker run --rm -it -v $(pwd):/app oanhnn/laravel-echo-server client:add
$ docker run --rm -it -v $(pwd):/app oanhnn/laravel-echo-server client:remove
All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send a pull request.
If you would like to help take a look at the list of issues.
This project is released under the MIT License.
Copyright © 2018 Oanh Nguyen
Please see License File for more information.
Content type
Image
Digest
sha256:ebf1d2a40…
Size
31.9 MB
Last updated
over 3 years ago
docker pull serh/docker-laravel-echo-server