.gitignore – .gitIgnore File for Docker Compose Files

.gitignore - .gitIgnore File for Docker Compose Files
April 9, 2026

Use Case TrueNAS shared SMB with a folder dedicated to yaml files.

image.png

This is it to be used if you have a SMB drive and point Visual Code or Code Server to all of your docker folders.

The .gitignore file setup

# Ignore everything by default * # Allow directories to be traversed !*/ # Include YAML files !*.yaml !*.yml !.env !env.* # Include .gitignore and .gitattributes files !.gitignore !.gitattributes