The laravel-websockets implementation
1.0K
OWS is a implementation of laravel-websockets, created to be used in a standalone fashion under docker, docker-compose or kubernetes scenarios.
Latest version of OWS is built under:
Please see section configuration to change publising ports, ssl certs and enabling stats.
To deploy a OWS service using docker please follow:
Install Docker
Run docker run --name ows -e OWS_APP_ID=yourappid -e OWS_APP_KEY=yourappkey -e OWS_APP_SECRET=yourappsecret -d -p 6001:6001 kytoonlabs/openwebsockets
Configure your application to consume the OWS service at http://{docker_host}:6001
To deploy OWS using docker-compose you should:
Install Docker and docker-compose
Create a docker-compose.yml file
version: 3
volumes:
ows-data:
services:
ows:
image: kytoonlabs/openwebsockets
ports:
- '6001:6001'
environment:
OWS_APP_ID: yourappid
OWS_APP_KEY: yourappkey
OWS_APP_SECRET: yourappsecret
volumes:
- ows-data:/var/lib/mysql
restart: always
Launch docker-compose with docker-compose up -d
OWS implements laravel-websockets project and some capabilities can be configured following the table below. Feature requests that apply to this implementation can be requested at the repository's issues section.
| Env Variable | Description | Default |
|---|---|---|
| OWS_APP_ID | Application ID | 1000 |
| OWS_APP_KEY | Application Key code | 123456 |
| OWS_APP_SECRET | Application Secret code | ThisIsMySecret |
| OWS_APP_NAME | Application Name | ows |
| OWS_PORT | Listening Port | 6001 |
| OWS_APP_CAPACITY | Limit number of comnnections | |
| OWS_CLIENT_MESSAGES | Allow messages between clients | false |
| OWS_ENABLE_STATS | Enable statistics collection | true |
| OWS_APP_PATH | Path for the statistics dashboard | |
| OWS_SSL_LOCAL_CERT | SSL/TLS Certificate | |
| OWS_SSL_LOCAL_PK | SSL/TLS Key | |
| OWS_SSL_PASSPHRASE | SSL/TLS Passphrase |
For more information about the laravel-websockets project please visit the official documentation.
If you'd like to report a bug, give us feedback, or contribute to OpenWebSockets implementation, please read our contributor guidelines.
OpenWebSockets is open-sourced software licensed under the MIT license.
Content type
Image
Digest
sha256:fa9e14996…
Size
106.2 MB
Last updated
over 3 years ago
docker pull kytoonlabs/openwebsockets