Skip to content

Commit 99ad60e

Browse files
author
erangi-ar
committed
Merge branch 'streaming-feature-opensearch' of https://github.com/rootcodelabs/RAG-Module into rag-deployment-ec2
2 parents a9169f2 + 731a3d7 commit 99ad60e

File tree

15 files changed

+1899
-3
lines changed

15 files changed

+1899
-3
lines changed

docker-compose.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,70 @@ services:
525525
start_period: 40s
526526
retries: 3
527527

528+
opensearch-node:
529+
image: opensearchproject/opensearch:2.11.1
530+
container_name: opensearch-node
531+
environment:
532+
- node.name=opensearch-node
533+
- discovery.seed_hosts=opensearch
534+
- discovery.type=single-node
535+
- bootstrap.memory_lock=true
536+
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
537+
- plugins.security.disabled=true
538+
ulimits:
539+
memlock:
540+
soft: -1
541+
hard: -1
542+
nofile:
543+
soft: 65536
544+
hard: 65536
545+
volumes:
546+
- opensearch-data:/usr/share/opensearch/data
547+
ports:
548+
- 9200:9200
549+
- 9600:9600
550+
networks:
551+
- bykstack
552+
553+
notifications-node:
554+
container_name: notifications-node
555+
build:
556+
context: ./notification-server
557+
dockerfile: Dockerfile
558+
ports:
559+
- 4040:4040
560+
depends_on:
561+
- opensearch-node
562+
environment:
563+
OPENSEARCH_PROTOCOL: http
564+
OPENSEARCH_HOST: opensearch-node
565+
OPENSEARCH_PORT: 9200
566+
OPENSEARCH_USERNAME: admin
567+
OPENSEARCH_PASSWORD: admin
568+
PORT: 4040
569+
REFRESH_INTERVAL: 1000
570+
QUEUE_REFRESH_INTERVAL: 4000
571+
CORS_WHITELIST_ORIGINS: http://localhost:3001,http://localhost:3003,http://localhost:3004,http://localhost:8080
572+
RUUTER_URL: http://ruuter-public:8086
573+
CHAT_TERMINATION_DELAY: 5000
574+
volumes:
575+
- /app/node_modules
576+
- ./notification-server:/app
577+
networks:
578+
- bykstack
579+
580+
#Uncomment below container if you wish to debug progress bar sessions in opensearch dashboard
581+
opensearch-dashboards:
582+
image: opensearchproject/opensearch-dashboards:2.11.1
583+
container_name: opensearch-dashboards
584+
environment:
585+
- OPENSEARCH_HOSTS=http://opensearch-node:9200
586+
- DISABLE_SECURITY_DASHBOARDS_PLUGIN=true
587+
ports:
588+
- 5601:5601
589+
networks:
590+
- bykstack
591+
528592
volumes:
529593
loki-data:
530594
name: loki-data
@@ -552,6 +616,8 @@ volumes:
552616
name: vault-agent-creds
553617
vault-agent-token:
554618
name: vault-agent-token
619+
opensearch-data:
620+
name: opensearch-data
555621

556622
networks:
557623
bykstack:

notification-server/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

notification-server/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:22.5.1-alpine
2+
3+
WORKDIR /app
4+
5+
COPY package.json package-lock.json /app/
6+
7+
RUN npm install
8+
9+
COPY . /app/
10+
11+
EXPOSE 4040
12+
13+
CMD ["npm", "run", "start"]

notification-server/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('dotenv').config();
2+
require('./src/server');

0 commit comments

Comments
 (0)