Overview - Compose profiles for selective services
What is it?
Compose profiles let you group services in a Docker Compose file so you can start only the ones you need. Instead of running all services every time, you pick a profile to run a subset. This helps manage complex projects with many services by focusing on relevant parts.
Why it matters
Without profiles, you must start all services or manually edit files to run only some. This wastes resources and slows development. Profiles let you quickly switch between different setups, like testing or production, saving time and computer power.
Where it fits
You should know basic Docker and Docker Compose concepts first, like services and how to run docker-compose up. After learning profiles, you can explore advanced Compose features like overrides, environment variables, and multi-stage builds.