I've been reading through the posts here and all over, but still I don't get why my docker-compose files are not being ignored.
They are at my projects root directory. Along with my .env
, package.json
and everything else.
So, here is my .dockerignore
file:
.git
docker*
docker-compose.yml
node_modules
.env
*.log
.gitignore
yarn.log
.dockerignore
.editorconfig
README.md
LICENSE
.vscode
I have tried different things, such as: docker-compose.yml*
, *docker-compose.yml
and *docker-compose
Still I get this file pushed over to the remote branch.
Any different approaches?
If by "Still I get this file pushed over to the remote branch", you mean you are trying to gitignore that file then you can remove it using
git rm --cached docker-composer.yml