Skip to content

Commit

Permalink
Merge branch 'release/v1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasTeodoro committed Apr 24, 2020
2 parents 2c5ba69 + 6a804fd commit bee5b7b
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/laravel-echo-server.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Dockerfile
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/
32 changes: 32 additions & 0 deletions config/laravel-echo-server.json
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": ""
}
}
24 changes: 24 additions & 0 deletions docker-compose.yaml
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
4 changes: 4 additions & 0 deletions readme.MD
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)**

0 comments on commit bee5b7b

Please sign in to comment.