diff --git a/compose/service.py b/compose/service.py index 6483f4f31..2754572fe 100644 --- a/compose/service.py +++ b/compose/service.py @@ -177,7 +177,7 @@ class Service(object): network_mode=None, networks=None, secrets=None, - scale=None, + scale=1, pid_mode=None, default_platform=None, **options @@ -192,7 +192,7 @@ class Service(object): self.pid_mode = pid_mode or PidMode(None) self.networks = networks or {} self.secrets = secrets or [] - self.scale_num = scale or 1 + self.scale_num = scale self.default_platform = default_platform self.options = options