Home Explore Blog CI



docker

1st chunk of `content/includes/compose/profiles.md`
f9fba6c9c2b3f56aa18d8c6d357f9543bf03ff73a327fa4400000001000001b6
Profiles help you adjust your Compose application for different environments or use cases by selectively activating services. Services can be assigned to one or more profiles; unassigned services start/stop by default, while assigned ones only start/stop when their profile is active. This setup means specific services, like those for debugging or development, to be included in a single `compose.yml` file and activated only as needed.

Title: Using Profiles in Docker Compose for Environment-Specific Services
Summary
Docker Compose profiles enable conditional service activation based on the environment or use case. Services can be assigned to profiles, allowing you to selectively start or stop them. This is useful for including debugging or development services in a single `compose.yml` file and activating them only when necessary.