# .gitignore - .gitIgnore File for Docker Compose Files

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

[![image.png](https://docs.sflservicesllc.com/uploads/images/gallery/2026-04/scaled-1680-/omximage.png)](https://docs.sflservicesllc.com/uploads/images/gallery/2026-04/omximage.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

```ini
# Ignore everything by default
*

# Allow directories to be traversed
!*/

# Include YAML files
!*.yaml
!*.yml
!.env
!env.*

# Include .gitignore and .gitattributes files
!.gitignore
!.gitattributes
```