.gitignore - .gitIgnore File for Docker Compose Files

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


Revision #2
Created 9 April 2026 12:47:09 by Steve Ling
Updated 9 April 2026 12:54:45 by Steve Ling