wurstmeister / kafka-docker

Dockerfile for Apache Kafka
http://wurstmeister.github.io/kafka-docker/
Apache License 2.0
6.9k stars 2.73k forks source link

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

Closed Hasankanso closed 3 years ago

Hasankanso commented 3 years ago

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 commented 3 years ago

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