-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
COMPOSE_PROJECT_NAME should not be required for development setup #9318
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
Comments
This environment variable is read from .env file that's on the repository automatically. However, if you are using a different version of docker compose than the one from the requirements, this does not happen. Can you confirm that you have the exact same version of docker compose than the one expected? (from the phone) |
I'm not sure why it doesn't work for me and works for others. I am running the commands from the same directory as the Another thing that I wonder about: Aren't .env files supposed to be about setting the environment for the containers, and |
What happens during
...
Additionally:
So this is actually normal Docker behavior since the docker-compose configuration is stored in a directory called "dockerfiles". From Docker docs
|
This error makes more sense to me. This means that it's reading the
We want to avoid the default naming because we have images for |
@humitos I have had this working since Wednesday - I wanted to add the above for clarity of the issue :) Since docker-compose is invoked from a base directory called I understand that everyone wants the Development Install to work without specifying |
I would like to propose that |
This is now fixed in readthedocs/common#148 🎉 |
Details
If we setup a fresh environment, following Development Install, these steps will not work because
COMPOSE_PROJECT_NAME
isn't specified. AddingCOMPOSE_PROJECT_NAME=community
fixes the issue.Expected Result
We can run
inv docker.build
andinv.docker.up
without settingCOMPOSE_PROJECT_NAME
.Actual Result
This is necessary:
COMPOSE_PROJECT_NAME=community inv docker.build
COMPOSE_PROJECT_NAME=community inv docker.up
Tested platform
Latest
main
, Ubuntu 22.04 with Docker 20.10.4The text was updated successfully, but these errors were encountered: