Self Deployment
Hello Team, I'm new to deployment process, I have some doubts in it.
what are .env variables I must change for self deployment.
Note: planning to deploy it on s3
Do I really need to run web socket to send emails and push notifications ?
Please help me on this. Thanks!!
16 Replies
Sorry for miss coummincation we are planning to host in VM.
Hey @Puvi 👋 So for emails and push socket is not required, in later stage of you want to add in-app you can add socket. As for variables I’ll let @Pawan Jain and @Moderator to help us 🙂
Thanks @Tomer Barnea
@puvi07
Novu can be self hosted on EC2 based instance. S3 is just a storage service. it can not be used to host Novu. Novu requires a virtual machine.
Checkout this docs to learn how to self host novu using docker compose
https://docs.novu.co/self-hosting-novu/deploy-with-docker
We have a step by step video guide.
we have .example.env file that can be used as it is, Just need to change
HOST_NAME
depending on where you hostThank you so much @Pawan Jain, can we have novu,mongo anfd redis on the same machine ?
Yes
Thanks @Pawan Jain
I will let you if we are facing any errors, kindly please help us
Checkout video guide on the doc page. It will resolve all of your questions
Great !!
Hi @Pawan Jain
worker | ReplyError: NOAUTH Authentication required.
worker | at Object.onceWrapper (node:events:627:28)
worker | at Socket.emit (node:events:525:35)
worker | at Socket.emit (node:domain:489:12)
worker | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1263:10) {
worker | command: { name: 'select', args: [ '2' ] }
worker | }
worker | ReplyError: WRONGPASS invalid username-password pair
worker | at Object.onceWrapper (node:events:627:28)
worker | at Socket.emit (node:events:525:35)
worker | at Socket.emit (node:domain:489:12)
worker | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1263:10) {
worker | command: {
worker | name: 'auth',
worker | args: [ 'our Password' ]
worker | }
We are getting this error while doing docker compose.
REDIS_HOST=redis
REDIS_PASSWORD=
REDIS_CACHE_SERVICE_HOST=
What is REDIS_CACHE_SERVICE_HOST, which value we need to provide to this ?
Please help me on this.
Thanks.
@Puvi did you follow the same steps as shown in video?
Yes
but we have set environmental variables for our requirement
@Pawan Jain
@Puvi are you giving same values to
REDIS_HOST
and REDIS_CACHE_SERVICE_HOST
?Yes @Pawan Jain, Redis issue resolved. Currently We are facing this iisue
| [Nest] 128 - 02/06/2024, 9:10:52 AM ERROR [ExceptionHandler] Server selection timed out after 30000 ms
ws | MongooseServerSelectionError: Server selection timed out after 30000 ms
ws | at _handleConnectionErrors (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/connection.js:805:11)
ws | at NativeConnection.openUri (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/connection.js:780:11)
ws | at processTicksAndRejections (node:internal/process/task_queues:96:5)
has context menu
@Puvi, you just advanced to level 4!
As per this errror, I suspect mongodb is not accepting connections
or mongodb uri is wrong + incorrect credentials
Thanks @Pawan Jain