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 a PROJECT_DIRECTORY environment variable #10920

Open
CaptainQuirk opened this issue Aug 22, 2023 · 2 comments
Open

Support a PROJECT_DIRECTORY environment variable #10920

CaptainQuirk opened this issue Aug 22, 2023 · 2 comments
Labels
area/env .env and env_file kind/feature

Comments

@CaptainQuirk
Copy link

Description

Hi !

We're using the --project-directory flag to store all our docker compose related files in a .docker directory.

The frameworks we're using in our web projects are all using the dotenv mechanism but we decided that having a single env file containing both docker related variables and app related variables was not the road we wanted to take.

If a PROJECT_DIRECTORY variable was supported, it would save us some keystrokes. While we took the habit of hiding some of the complexity in Makefiles for example, we are still bound to type a full docker compose command at some point.

Thanks in advance !

@sprat
Copy link

sprat commented Nov 5, 2023

I would also love to see this feature implemented, it would simplify the usage when using "docker compose" in a container, because it's easier to pass environment variables than messing with the command-line especially when we can't put this parameters after the "command" word.

@MikaelElkiaer
Copy link

I would also love this.

@jhrotko jhrotko added the area/env .env and env_file label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/env .env and env_file kind/feature
Projects
None yet
Development

No branches or pull requests

5 participants