Skip to content

Activate profiles of a given targeted service#1297

Draft
Kache wants to merge 1 commit intocontainers:mainfrom
Kache:targeted-profiles
Draft

Activate profiles of a given targeted service#1297
Kache wants to merge 1 commit intocontainers:mainfrom
Kache:targeted-profiles

Conversation

@Kache
Copy link
Copy Markdown

@Kache Kache commented Aug 27, 2025

A service is ignored by Compose when none of the listed profiles match the active
ones, unless the service is explicitly targeted by a command. In that case its profile is
added to the set of active profiles.

WIP - have not run tests nor looked at CONTRIBUTING.md yet

See: https://docs.docker.com/reference/compose-file/profiles/
Fixes: #930

Contributor Checklist:

If this PR adds a new feature that improves compatibility with docker-compose, please add a link
to the exact part of compose spec that the PR touches.

For any user-visible change please add a release note to newsfragments directory, e.g.
newsfragments/my_feature.feature. See newsfragments/README.md for more details.

All changes require additional unit tests.

> A service is ignored by Compose when none of the listed `profiles` match the active > ones, unless the service is explicitly targeted by a command. In that case its profile is > added to the set of active profiles. WIP - have not run tests nor looked at CONTRIBUTING.md yet See: https://docs.docker.com/reference/compose-file/profiles/ Fixes: containers#930
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant