I am trying to setup docker-compose scripts in a repo next to our app repo. I can change context and set the Dockerfile like so:
build: context: ../ dockerfile: ./docker-scripts/Dockerfile
However the CLI still looks for the .dockerignore at the root directory. Is it possible to change the location of the .gitignore like you can with the dockerfile?
Before the docker CLI sends the context to the docker daemon, it looks for a file named .dockerignore in the root directory of the context. If this file exists, the CLI modifies the context to exclude files and directories that match patterns in it.
and Compose doc without any mention of .gitignore