Sefthost error with redis

Hi, I'm trying to sefthost Novu with Docker and the service name "api" couldn't connect to redis but service "ws" can. Pls help
4 Replies
--
--2y ago
Hello. Have you properly set up in the .env file inside the folder <ROOT_DIR>/apps/api the correct values for the environment variables:
REDIS_HOST="<URL_OF_REDIS>"
REDIS_PORT="<PORT_OF_REDIS>"
REDIS_HOST="<URL_OF_REDIS>"
REDIS_PORT="<PORT_OF_REDIS>"
?
Khang Lâm
Khang LâmOP2y ago
yes, I followed the instructions on the site https://docs.novu.co/overview/docker-deploy/
Deploy using Docker | Novu
Docker compose is the easiest way to get started with self-hosted Novu.
--
--2y ago
Which version of Novu are you using? From which branch are you deploying the Docker solution? And finally, which setup of the Docker are you trying to run: deployment or development? One quick test you can do is to add inside of the file /apps/api/src/main.ts some log captures to see if the environment variables are being loaded properly in the API app.
console.log('Checking env variables', process.env.REDIS_HOST, process.env.REDIS_PORT);
console.log('Checking env variables', process.env.REDIS_HOST, process.env.REDIS_PORT);
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server