sherifabdlnaby / elastdocker

🐳 Elastic Stack (ELK) v8+ on Docker with Compose. Pre-configured out of the box to enable Logging, Metrics, APM, Alerting, ML, and SIEM features. Up with a Single Command.
https://towardsdatascience.com/running-securing-and-deploying-elastic-stack-on-docker-f1a8ebf1dc5b
MIT License
1.81k stars 320 forks source link

make prune only removes this project's volumes #73

Closed gluckzhang closed 2 years ago

gluckzhang commented 2 years ago

(Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.)

What does this implement/fix? Explain your changes.

Adjust the Makefile and let make prune only delete the volumes created by this docker-compose project. The following command works:

docker volume prune -f --filter label=com.docker.compose.project=elastic

Does this close any currently open issues?

Yes, this closes #72 .

Any relevant logs, error output, etc?

Not necessary in this case.

Where has this been tested?

In my local environment.

sherifabdlnaby commented 2 years ago

@gluckzhang Thank you for finding and fixing this one! 🙏🏻