Skip to content

Is it possible to specify the service name to start from a docker-compose.yml file? #254

Answered by mariotoffia
AndrewPearson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AndrewPearson - sorry, right now it is not possible from the Fluent API. You may use the command layer to gain the required functionality.

Check the Commands/Compose.cs file e..g in ComposeUp(...), it will invoke the ComposeCommand using

      host.ComposeUpCommand(new ComposeUpCommandArgs
      {
        AltProjectName = altProjectName,
        ForceRecreate = forceRecreate,
        NoRecreate = noRecreate,
        DontBuild = dontBuild,
        BuildBeforeCreate = buildBeforeCreate,
        Timeout = timeout,
        RemoveOrphans = removeOrphans,
        UseColor = useColor,
        NoStart = noStart,
        Services = services, // If services is null or zero length it will do all…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mariotoffia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants