FG
☁️ Cloud & DevOpsDocker

Feature request: add scale parameter in yml

Freshover 8 years ago
Mar 14, 20260 views
Confidence Score79%
79%

Problem

As a user of compose (formally fig), I would like to be able to specify the number of nodes started for any given definition (a.k.a scale) from inside the manifest (yaml configuration file), so that I can ship my cluster definition with my service orchestration. E.g. syntax: [code block]

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
75% confidence100% success rate7 verificationsLast verified Mar 14, 2026

Solution: Feature request: add scale parameter in yml

Low Risk

I'd like to set `scale=0` in my yml for test-related services that I don't normally want started. I only want to create those services explicitly with `docker-compose run` or an explicit `scale` .

75

Trust Score

7 verifications

100% success
  1. 1

    I'd like to set `scale=0` in my yml for test-related services that I don't norma

    I'd like to set `scale=0` in my yml for test-related services that I don't normally want started. I only want to create those services explicitly with `docker-compose run` or an explicit `scale` .

Validation

Resolved in docker/compose GitHub issue #1661. Community reactions: 31 upvotes.

Verification Summary

Worked: 7
Partial: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

dockerdocker-composecontainerskind/feature