-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
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