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

Disable loading .env file #192

Closed
shyim opened this issue Jun 5, 2024 · 7 comments
Closed

Disable loading .env file #192

shyim opened this issue Jun 5, 2024 · 7 comments
Labels
done Done, awaiting release enhancement New feature or request

Comments

@shyim
Copy link

shyim commented Jun 5, 2024

Feature Request

Right now process compose loads the project .env file and makes it impossible to change any configuration while the processes are running.

I would like to have a flag in the configuration to disable this behavior. I set all relevant environment variables already before calling process compose

@F1bonacc1
Copy link
Owner

Hi,

I can provide an argument and an environment variable to disable the .env loading.
Do you think it will work for you?

@F1bonacc1
Copy link
Owner

F1bonacc1 commented Jun 28, 2024

Just so you know, process-compose (with .env file) doesn't override env variables that already exist.

@shyim
Copy link
Author

shyim commented Jun 28, 2024

I want that my application reads the .env and so I can change the environment variable without restarting process compose

@F1bonacc1
Copy link
Owner

That makes sense.
Will the process compose argument to disable .env loading help you then?

@shyim
Copy link
Author

shyim commented Jun 28, 2024

yes or in the config file in the root level maybe :)

@F1bonacc1 F1bonacc1 added the done Done, awaiting release label Jun 29, 2024
@F1bonacc1
Copy link
Owner

Released in v1.9.0

@RafaelKr
Copy link

RafaelKr commented Jul 29, 2024

v1.9.0 is now available on nixpkgs unstable: https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=process-compose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Done, awaiting release enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants