-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:alpine | ||
|
||
RUN apk add bash | ||
RUN npm install -g laravel-echo-server | ||
|
||
EXPOSE 6001 | ||
|
||
CMD laravel-echo-server start --dir=/config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"authHost": "https://localhost:9000", | ||
"authEndpoint": "/broadcasting/auth", | ||
"clients": [], | ||
"database": "redis", | ||
"databaseConfig": { | ||
"redis": {}, | ||
"sqlite": { | ||
"databasePath": "/database/laravel-echo-server.sqlite" | ||
} | ||
}, | ||
"devMode": false, | ||
"host": null, | ||
"port": "6001", | ||
"protocol": "https", | ||
"socketio": {}, | ||
"secureOptions": 67108864, | ||
"sslCertPath": "/etc/tls.crt", | ||
"sslKeyPath": "/etc/tls.key", | ||
"sslCertChainPath": "", | ||
"sslPassphrase": "", | ||
"subscribers": { | ||
"http": true, | ||
"redis": true | ||
}, | ||
"apiOriginAllow": { | ||
"allowCors": false, | ||
"allowOrigin": "", | ||
"allowMethods": "", | ||
"allowHeaders": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '3' | ||
|
||
services: | ||
app: | ||
build: . | ||
container_name: app | ||
tty: true | ||
working_dir: /home/node/app | ||
environment: | ||
- LARAVEL_ECHO_SERVER_HOST=localhost | ||
- LARAVEL_ECHO_SERVER_REDIS_HOST=redis | ||
volumes: | ||
- ./:/home/node/app | ||
networks: | ||
- app-network | ||
redis: | ||
image: redis:alpine | ||
container_name: redis | ||
tty: true | ||
networks: | ||
- app-network | ||
networks: | ||
app-network: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
For use your on configuration re-write de config file in | ||
`/home/node/app/config` OR change de command `laravel-echo-server start --dir=<new dir>` | ||
|
||
**For more information visit: [clique aqui](https://github.com/tlaverdure/laravel-echo-server)** |