From cd9542198cfe796084465ff65ce16f49209b15fd Mon Sep 17 00:00:00 2001 From: Wuweiming <1052701694@qq.com> Date: Fri, 29 Apr 2022 14:21:10 +0800 Subject: [PATCH 1/2] feat:Add the broadcast driver officially recommended by laravel --- docker-compose.yml | 11 +++++++++++ soketi/Dockerfile | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 soketi/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 70cef48..4976b20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -396,6 +396,17 @@ services: networks: - backend + ### Soketi Server ############################################## + soketi: + build: + context: ./soketi + ports: + - "${SOKETI_PORT}:6001" + - "${SOKETI_METRICS_SERVER_PORT}:9601" + networks: + - frontend + - backend + ### NGINX Server ######################################### nginx: build: diff --git a/soketi/Dockerfile b/soketi/Dockerfile new file mode 100644 index 0000000..3f52bf3 --- /dev/null +++ b/soketi/Dockerfile @@ -0,0 +1,7 @@ +FROM quay.io/soketi/soketi:latest + +LABEL maintainer="WuweiMing " + +CMD ["node /app/bin/server.js start"] + +EXPOSE 6001 9601 From 20463869c2ba081cf6436658efbe18cc5f7859df Mon Sep 17 00:00:00 2001 From: Wuweiming <1052701694@qq.com> Date: Fri, 29 Apr 2022 14:29:30 +0800 Subject: [PATCH 2/2] fix:add .env.example --- .env.example | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.env.example b/.env.example index 3adafe9..31dbc63 100644 --- a/.env.example +++ b/.env.example @@ -1040,3 +1040,7 @@ TARANTOOL_ADMIN_PORT=8002 NATS_CLIENT_PORT=4222 NATS_MONITORING_PORT=6222 NATS_ROUTE_PORT=8222 + +### SOKETI ################################################## +SOKETI_PORT=6001 +SOKETI_METRICS_SERVER_PORT=9601