# Rancher-compose.yml ignores scale: 0

**URL:** <https://forums.suse.com/t/rancher-compose-yml-ignores-scale-0/686>\
**Category:** Rancher 1.x\
**Created:** [October 12, 2015, 1:39pm UTC](https://forums.suse.com/t/rancher-compose-yml-ignores-scale-0/686 "2015-10-12T13:39:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiboro](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kiboro](https://forums.suse.com/u/kiboro)\
**Post date:** [October 12, 2015, 1:39pm UTC](https://forums.suse.com/t/rancher-compose-yml-ignores-scale-0/686/1 "2015-10-12T13:39:29Z")

</div>

Hi, just found out that scale: 0 doesn’t work in rancher-compose. Instead it defaults to scale: 1. I can see the point that scale should default to 1 if missing but explicit zero would be useful.

I want to stand up a stack with the database components running but the applications not. Then I can import a database restore before starting up the application. I can do this with rancher-compose up and then rancher-compose upgrade but this would be simpler. I don’t really want to automate this as it’s just for manual recovery and porting between environments.

---

<div class="post-metadata">

**Author:** ![kaos](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kaos/32/38_2.png) [@kaos](https://forums.suse.com/u/kaos)\
**Post date:** [October 12, 2015, 6:37pm UTC](https://forums.suse.com/t/rancher-compose-yml-ignores-scale-0/686/2 "2015-10-12T18:37:17Z")

</div>

Why not `rancher-compose create` follow by `rancher-compose up svcA svcB ...` and later when ready a full `rancher-compose up`.

---

<div class="post-metadata">

**Author:** ![kiboro](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kiboro](https://forums.suse.com/u/kiboro)\
**Post date:** [October 14, 2015, 2:23pm UTC](https://forums.suse.com/t/rancher-compose-yml-ignores-scale-0/686/3 "2015-10-14T14:23:52Z")

</div>

Thanks, that works just fine. Didn’t know you could up only certain services. Easy to script as well:

rancher-compose create  
rancher-compose up mysqlserver  
docker attach mysqlserver mysql db \< backup.sql # restore the db  
rancher-compose up

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [October 14, 2015, 8:39pm UTC](https://forums.suse.com/t/rancher-compose-yml-ignores-scale-0/686/4 "2015-10-14T20:39:00Z")

</div>

This should be fixed in [https://github.com/rancher/rancher/issues/2317](https://github.com/rancher/rancher/issues/2317).

Basically, 2317 will allow scale to be 0 or null.
