add laravel echo server
This commit is contained in:
parent
f296a39bf5
commit
da60b32a04
@ -566,6 +566,7 @@ services:
|
|||||||
- proxy2
|
- proxy2
|
||||||
|
|
||||||
### Jenkins ###################################################
|
### Jenkins ###################################################
|
||||||
|
|
||||||
jenkins:
|
jenkins:
|
||||||
build: ./jenkins
|
build: ./jenkins
|
||||||
environment:
|
environment:
|
||||||
@ -581,6 +582,19 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
### Laravel Echo Server #######################################
|
||||||
|
laravel-echo-server:
|
||||||
|
build:
|
||||||
|
context: ./laravel-echo-server
|
||||||
|
volumes:
|
||||||
|
- ./laravel-echo-server/laravel-echo-server.json:/app/laravel-echo-server.json:ro
|
||||||
|
ports:
|
||||||
|
- "${LARAVEL_ECHO_SERVER_PORT}:6001"
|
||||||
|
links:
|
||||||
|
- redis
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### Networks Setup ############################################
|
### Networks Setup ############################################
|
||||||
|
|
||||||
|
@ -240,6 +240,10 @@ CADDY_HOST_HTTPS_PORT=443
|
|||||||
CADDY_HOST_LOG_PATH=./logs/caddy
|
CADDY_HOST_LOG_PATH=./logs/caddy
|
||||||
CADDY_CUSTOM_CADDYFILE=./caddy/Caddyfile
|
CADDY_CUSTOM_CADDYFILE=./caddy/Caddyfile
|
||||||
|
|
||||||
|
### LARAVEL ECHO SERVER ################################################################################################
|
||||||
|
|
||||||
|
LARAVEL_ECHO_SERVER_PORT=6001
|
||||||
|
|
||||||
|
|
||||||
##### TO BE CONTINUE .................................
|
##### TO BE CONTINUE .................................
|
||||||
|
|
||||||
|
15
laravel-echo-server/Dockerfile
Normal file
15
laravel-echo-server/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM node:argon
|
||||||
|
|
||||||
|
# Create app directory
|
||||||
|
RUN mkdir -p /usr/src/app
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# Install app dependencies
|
||||||
|
COPY package.json /usr/src/app/
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# Bundle app source
|
||||||
|
COPY laravel-echo-server.json /usr/src/app/laravel-echo-server.json
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD [ "npm", "start" ]
|
19
laravel-echo-server/laravel-echo-server.json
Normal file
19
laravel-echo-server/laravel-echo-server.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"authHost": "localhost",
|
||||||
|
"authEndpoint": "/broadcasting/auth",
|
||||||
|
"clients": [],
|
||||||
|
"database": "redis",
|
||||||
|
"databaseConfig": {
|
||||||
|
"redis": {
|
||||||
|
"port": "6379",
|
||||||
|
"host": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"devMode": true,
|
||||||
|
"host": null,
|
||||||
|
"port": "6001",
|
||||||
|
"protocol": "http",
|
||||||
|
"socketio": {},
|
||||||
|
"sslCertPath": "",
|
||||||
|
"sslKeyPath": ""
|
||||||
|
}
|
12
laravel-echo-server/package.json
Normal file
12
laravel-echo-server/package.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "laravel-echo-server-docker",
|
||||||
|
"description": "Docker container for running laravel-echo-server",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"laravel-echo-server": "^1.2.8"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"start": "laravel-echo-server start"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user