# Removing a service on upgrade?

**URL:** <https://forums.suse.com/t/removing-a-service-on-upgrade/1244>\
**Category:** Rancher 1.x\
**Created:** [December 15, 2015, 3:39am UTC](https://forums.suse.com/t/removing-a-service-on-upgrade/1244 "2015-12-15T03:39:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyshinn](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andyshinn/32/442_2.png) [@andyshinn](https://forums.suse.com/u/andyshinn)\
**Post date:** [December 15, 2015, 3:39am UTC](https://forums.suse.com/t/removing-a-service-on-upgrade/1244/1 "2015-12-15T03:39:49Z")

</div>

I am trying to create a stack that has 1 more container in a certain environment. When I run the `docker-compose-staging.yml` that has 3 services and then the `docker-compose-production.yml` which is the same except for one less service, the removed service does not get stopped.

I have also tried setting `scale: 0` in `rancher-compose.yml` for this service as well. But it doesn’t seem to stop it.

What is a good way to have a `docker-compose.yml` that has one extra service in a specific environment and that can be removed when removed from the compose file?

---

<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:** [December 17, 2015, 7:49pm UTC](https://forums.suse.com/t/removing-a-service-on-upgrade/1244/2 "2015-12-17T19:49:00Z")

</div>

What command are you running to run these files? Are you just doing a `rancher-compose up`?

Actually, never mind, I think it won’t work. Can you file an enhancement for a flag for this?

You can usually do a `rancher-compose rm`

---

<div class="post-metadata">

**Author:** ![andyshinn](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andyshinn/32/442_2.png) [@andyshinn](https://forums.suse.com/u/andyshinn)\
**Post date:** [December 18, 2015, 6:38pm UTC](https://forums.suse.com/t/removing-a-service-on-upgrade/1244/3 "2015-12-18T18:38:48Z")

</div>

Cool, added at [https://github.com/rancher/rancher/issues/3071](https://github.com/rancher/rancher/issues/3071).
