Skip to content

DockerComposeContainer not starting up specific services #2191

Closed
@E4Edwards

Description

@E4Edwards

Hi,

Problem:
DockerComposeContainer starts up all the services in compose.yml even using withServices to select services I want to start up.

Investigation:
I found that (#1528) introduced the ability to start up specific services by adding services name after docker-compose up -d [services_names]
but it was removed accidentally in (#1847) when adding scale related settings.

In (#1847), it replaced [services_names] entirely by --scale [service=n],
but docker-compose up --scale [service=n] means start up ALL services in compose.yml with default 1 instance and the mentioned services with [n] instance.

Suggestion:
I think the correct way is adding the services name after the scale attribute.
docker-compose up [scale setting] [services_name]
i.e.
docker-compose up --scale service_b=2 service_a service_b

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions