Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

alukach
Copy link
Member

@alukach alukach commented Aug 9, 2024

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.

@alukach alukach requested a review from vincentsarago August 9, 2024 23:04
@alukach alukach merged commit 60d2d30 into main Aug 12, 2024
1 check passed
@alukach alukach deleted the feature/env-per-service branch August 12, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants