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

How to change the directory of docker-compose, without breaking file dependencies? #664

Closed
Hasankanso opened this issue May 26, 2021 · 1 comment

Comments

@Hasankanso
Copy link

Hello,

I'm merging docker-compose.yml provided in this repository with some other services I'm planning to run, however I don't want to put the docker-compose.yml file inside of kafka-docker folder, at the same time I want to keep everything organized.

error message when I put it outside of kafka-docker folder:

unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/hassankanso/project/Dockerfile: no such file or directory
ERROR: Service 'kafka' failed to build : Build failed

since the compose file builds a container from an image from dockerhub, it shouldn't be dependent on local files, isn't that the correct way to be done?

@Hasankanso
Copy link
Author

I didn't notice there are two services actually and kafka is building from local files!

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

No branches or pull requests

1 participant