Home Explore Blog CI



docker

content/includes/compose/profiles.md
180f4793f9ba8fe781830770b0c18550e81b801600d5705900000003000001b6
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.

Chunks
f9fba6c9 (1st chunk of `content/includes/compose/profiles.md`)
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.