Skip to content

Commit 35388fe

Browse files
authored
Merge pull request #389 from memplethee-lab/feat/micro
feat(load-balancer-service): add intelligent load balancer microservice with health-aware routing, weighted and least-connections balancing, circuit breaker, and Docker support
2 parents e8fdbfe + 7d9edc8 commit 35388fe

18 files changed

Lines changed: 9856 additions & 5 deletions
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM node:20-alpine
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY package*.json ./
6+
COPY tsconfig*.json ./
7+
8+
RUN npm install
9+
10+
COPY . .
11+
12+
RUN npm run build
13+
14+
EXPOSE 3005
15+
16+
CMD ["npm", "run", "start:prod"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: '3.8'
2+
3+
services:
4+
load-balancer-service:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
ports:
9+
- '3005:3005'
10+
environment:
11+
- PORT=3005
12+
restart: unless-stopped
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"collection": "@nestjs/schematics",
3+
"sourceRoot": "src"
4+
}

0 commit comments

Comments
 (0)