mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
set scale default to 1 on deploy
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
096d938bac
commit
d773719060
@ -318,6 +318,8 @@ class Project:
|
||||
)
|
||||
if replicas:
|
||||
scale = replicas
|
||||
if scale is None:
|
||||
return 1
|
||||
# deploy may contain placement constraints introduced in v3.8
|
||||
max_replicas = deploy_dict.get('placement', {}).get(
|
||||
'max_replicas_per_node',
|
||||
|
Loading…
x
Reference in New Issue
Block a user