developmentseed / eoapi-devseed

Custom eoAPI framework example for DevelopmentSeed
https://eoapi.dev/customization/
MIT License
5 stars 2 forks source link

Support loading env vars from common env or service-level envs #10

Closed alukach closed 1 month ago

alukach commented 1 month ago

What I'm changing

This PR configures the docker-compose services to load environment variables from both a common .env file or a per-service file (e.g. .raster.env).

This enables both broad and fine-grained customization of the services (e.g. add UVICORN_LOG_LEVEL=debug to all services via .env or to just one via .{service}.env.

How I did it

We're adding multiple optional environment files, making this an entirely optional feature. As per the docs, the service-level env files will take precedence over a common env file.

I also committed changes made by Prettier when formatting the YAML on save.