serverless / compose

Orchestrate Serverless Framework in monorepos
https://serverless.com/framework/docs/guides/compose
MIT License
111 stars 15 forks source link

Is dotenv support possible? #185

Open vicary opened 1 year ago

vicary commented 1 year ago

Is there an existing issue for this?

Use case description

In serverless.yml there is an option useDotenv where it searches for a .env file or it's variables in the same directory.

When composing services with serverless-compose.yml, it would be much easier to load one .env in the parent directory, and then pass them down to individual services via param.

Proposed solution (optional)

Add useDotenv option in serverless-compose.yml.