https://github.com/hatamiarash7/docker-laravel-echo-server
Laravel echo server image for Docker
https://github.com/hatamiarash7/docker-laravel-echo-server
docker docker-image echo echo-server laravel laravel-echo laravel-echo-server
Last synced: about 2 months ago
JSON representation
Laravel echo server image for Docker
- Host: GitHub
- URL: https://github.com/hatamiarash7/docker-laravel-echo-server
- Owner: hatamiarash7
- License: gpl-3.0
- Created: 2020-03-19T17:56:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-14T08:34:29.000Z (3 months ago)
- Last Synced: 2025-02-14T09:30:18.478Z (3 months ago)
- Topics: docker, docker-image, echo, echo-server, laravel, laravel-echo, laravel-echo-server
- Language: Shell
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Laravel Echo Server
It's a docker image for the [Laravel Echo Server](https://github.com/tlaverdure/laravel-echo-server)
## Install
```shell
docker pull docker.pkg.github.com/hatamiarash7/docker-laravel-echo-server/laravel-echo-server:1.1
```## 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
- `LARAVEL_ECHO_SERVER_AUTH_HOST` - Host of the server that authenticates private and presence channels
- `LARAVEL_ECHO_SERVER_HOST` - Host of the server
- `LARAVEL_ECHO_SERVER_PORT` - Port for the server
- `LARAVEL_ECHO_SERVER_DEBUG` - Debug mode
- `ECHO_CLIENTS` - JSON representing the clients for the server
- `ECHO_DEVMODE` - Same as debug mode### Running with SSL
The server supports either HTTP or HTTPS. If you want to use HTTPS, set the protocol appropriately and specify the certificate, key and any chain certificate using environment variables.
- `ECHO_PROTOCOL` - `http` or `https` depending on what you want to use
- `ECHO_SSL_CERT_PATH` - Path to an SSL certificate if using HTTPS
- `ECHO_SSL_KEY_PATH` - Path to the private key for the SSL certificate
- `ECHO_SSL_CHAIN_PATH` - Path to a chain certificate file
- `ECHO_SSL_PASSPHRASE` - The passphrase for the private key if required### API Access
There is a simple HTTP API built in, cross-domain access can be configured using environment variables :
- `ECHO_ALLOW_CORS` - `true` or `false` if you want to allow CORS or not
- `ECHO_ALLOW_ORIGIN` - The allowed origin for cross-domain comms
- `ECHO_ALLOW_METHODS` - HTTP methods that are allowed cross-domain
- `ECHO_ALLOW_HEADERS` - The headers that will be accepted with CORS---
## Support
[](https://ko-fi.com/D1D1WGU9)
## Contributing
1. Fork it !
2. Create your feature branch : `git checkout -b my-new-feature`
3. Commit your changes : `git commit -am 'Add some feature'`
4. Push to the branch : `git push origin my-new-feature`
5. Submit a pull request :D## Issues
Each project may have many problems. Contributing to the better development of this project by reporting them.