Introduction
Sometimes you want to run only certain parts of your app depending on the situation. Compose profiles let you choose which services start, so you don't waste resources or run unnecessary parts.
When you want to run a database only during development but not in production.
When you have optional services like monitoring or debugging tools that you run only sometimes.
When you want to test a new feature service without starting the whole app.
When you want to save resources by running only the core services in a small environment.
When you want to share one compose file but run different sets of services on different machines.