Sign inSign up

zacksleo/laravel-echo-server

By zacksleo

•Updated over 7 years ago

laravel-echo-server

Image
0

349

zacksleo/laravel-echo-server repository overview

⁠oanhnn/docker-laravel-echo-server

Software License Build Status Docker Build Method Docker Build Status Docker Pull Counter Docker Star Counter

Repository of oanhnn/laravel-echo-server Docker image.
Alpine based Laravel Echo Server⁠ image.

⁠Tags

⁠Version tags
Image TagBadges
v1.0.0Docker Image Size Docker Image Layers
v2.0.0Docker Image Size Docker Image Layers
2.1.0Docker Image Size Docker Image Layers
⁠Shared tags
  • latest - 2.1.0

⁠Features

  • Base from node:10-alpine image
  • Install laravel-echo-server

⁠Requirement

  • Docker Engine 1.13+

⁠Usage

⁠Run laravel-echo-server

Run laravel-echo-server by command

$ docker run -d -p 6001:6001 -v $(pwd):/app oanhnn/laravel-echo-server
⁠Auto generate config file
  • 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
    
⁠Configure database

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",
        "options": {
          "db": "REDIS_DB_BACKEND"
        }
      },
      "sqlite": {}
    },
    
    Environment variableDefault value
    REDIS_HOSTredis
    REDIS_PORT6379
    REDIS_DB_BACKEND0
  • 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
    
⁠Override config by environment variables

If some environment variables are existed (allow load /app/.env file is found), the following options can be overridden:

Environment variableConfig keyNote
LARAVEL_ECHO_SERVER_AUTH_HOSTauthHostThis option will fall back to the LARAVEL_ECHO_SERVER_HOST option as the default if that is set.
LARAVEL_ECHO_SERVER_HOSThost
LARAVEL_ECHO_SERVER_PORTport
LARAVEL_ECHO_SERVER_DEBUGdevMode

See more about laravel-echo-server.json in here⁠

⁠Run laravel-echo-server sub-commands
$ 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

⁠Contributing

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⁠.

⁠License

This project is released under the MIT License.
Copyright © 2018 Oanh Nguyen⁠
Please see License File⁠ for more information.

Tag summary

Content type

Image

Digest

Size

35.8 MB

Last updated

over 7 years ago

docker pull zacksleo/laravel-echo-server