Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GodziLaravel's avatar

what docker files and directories can I git ignore after Laravel sail install

Hello

I installed Laravel Sail in my existing project. everything works well .

There is some new files and directories :

# Docker directories
.docker/

# Docker Compose files
docker-compose.yml
docker-compose.override.yml
docker-compose.prod.yml

# Docker ignore file
.dockerignore

# Docker build context
.dockerignore

# Container logs
*.log

# Dockerfile cache files (if not using multi-stage builds)
.docker/ # Include only if you want to ignore all Docker-related files, including Dockerfiles

# Docker volumes (if not using named volumes)
*.vol

I'm wondering which directories and files I can put in .gitingnore ?

Thanks

0 likes
1 reply

Please or to participate in this conversation.