Error of Monogo DB connection string
@Pawan Jain @Novu_Bot while docker-compose -f docker-compose.yml up
then show below error
[Nest] 921 - 07/04/2024, 7:08:02 AM ERROR [ExceptionHandler] querySrv ESERVFAIL _mongodb._tcp.cluster0.8vyb3rm.mongodb.net
ws | Error: querySrv ESERVFAIL _mongodb._tcp.cluster0.8vyb3rm.mongodb.net
ws | at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/promises:240:17)
below is our env file
NODE_ENV=production
MONGO_MAX_POOL_SIZE=200
MONGO_MIN_POOL_SIZE=100
MONGO_URL=mongodb+srv://rocky:IlDDla4SMSBeD4OR@cluster0.8vyb3rm.mongodb.net/rocky_novu?retryWrites=true&w=majority
REDIS_HOST=redis
DOCKER_REDIS_SERVICE_PORT=6379
REDIS_PASSWORD=
REDIS_CACHE_SERVICE_HOST=
S3_BUCKET_NAME=novu-local
S3_REGION=us-east-1
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
REDIS_PORT=6379
REDIS_CACHE_SERVICE_PORT=6379
WS_PORT=3002
API_ROOT_URL=$HOST_NAME:1600
DISABLE_USER_REGISTRATION=false
FRONT_BASE_URL=$HOST_NAME:4200
WIDGET_EMBED_PATH=$HOST_NAME:4701/embed.umd.min.js
WIDGET_URL=$HOST_NAME:4500
then show below error
[Nest] 921 - 07/04/2024, 7:08:02 AM ERROR [ExceptionHandler] querySrv ESERVFAIL _mongodb._tcp.cluster0.8vyb3rm.mongodb.net
ws | Error: querySrv ESERVFAIL _mongodb._tcp.cluster0.8vyb3rm.mongodb.net
ws | at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/promises:240:17)
below is our env file
Secrets
YOU MUST CHANGE THESE BEFORE GOING INTO PRODUCTION
used as a secret to verify the JWT token signature
JWT_SECRET=XXXXXXXXXXXused to encrypt/decrypt the provider credentials
STORE_ENCRYPTION_KEY=XXXXXXXXXXHost
HOST_NAME=http://209.182.236.234General
available values 'dev', 'test', 'production', 'ci', 'local'
NODE_ENV=production
MONGO_MAX_POOL_SIZE=200
MONGO_MIN_POOL_SIZE=100
MONGO USER
#MONGO_INITDB_ROOT_USERNAME=rootMONGO PASSWORD
#MONGO_INITDB_ROOT_PASSWORD=secretMONGO_URL=mongodb+srv://rocky:IlDDla4SMSBeD4OR@cluster0.8vyb3rm.mongodb.net/rocky_novu?retryWrites=true&w=majority
REDIS_HOST=redis
DOCKER_REDIS_SERVICE_PORT=6379
REDIS_PASSWORD=
REDIS_CACHE_SERVICE_HOST=
AWS
S3_LOCAL_STACK=$HOST_NAME:4566S3_BUCKET_NAME=novu-local
S3_REGION=us-east-1
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
Ports
API_PORT=1600REDIS_PORT=6379
REDIS_CACHE_SERVICE_PORT=6379
WS_PORT=3002
Root URL
REACT_APP_WS_URL=$HOST_NAME:3002Uncomment this one when deploying Novu in the local environment
as Web app local Dockerfile will have to load this to be used.
Deployment version doesn't need as we inject it with API_ROOT_URL value.
REACT_APP_API_URL=$HOST_NAME:1600API_ROOT_URL=$HOST_NAME:1600
DISABLE_USER_REGISTRATION=false
FRONT_BASE_URL=$HOST_NAME:4200
WIDGET_EMBED_PATH=$HOST_NAME:4701/embed.umd.min.js
WIDGET_URL=$HOST_NAME:4500
