BackendWorks / nestjs-microservices

🚀 Fully managed Microservices starter pack using NestJs, RabbitMQ, Kong api gateway, MongoDB, PostgreSQL, Grafana, Loki, Fluentbit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENV variables are not easily accessible in production and development env

hmake98 opened this issue · comments

As microservices are containerized, the env variable should be easily accessible and in the current architecture, I'm managing the env variable and per NODE_ENV. but there are a few issues I faced a lot in development and deployment.

Based on research I found out that ENV variables can be stored on the cloud and it should get ENV variables directly from the cloud while the service is running in a container. OR in the development server, it should get directly from the root env file.

Fixed in version 2