# Export config as docker-compose for each host

**URL:** <https://forums.suse.com/t/export-config-as-docker-compose-for-each-host/108>\
**Category:** Rancher 1.x\
**Created:** [July 16, 2015, 4:39pm UTC](https://forums.suse.com/t/export-config-as-docker-compose-for-each-host/108 "2015-07-16T16:39:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![donskifarrell](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@donskifarrell](https://forums.suse.com/u/donskifarrell)\
**Post date:** [July 16, 2015, 4:39pm UTC](https://forums.suse.com/t/export-config-as-docker-compose-for-each-host/108/1 "2015-07-16T16:39:23Z")

</div>

Hi, _may have missed this, but did search_

Is there a way to export the entire config of a particular host/hosts as a docker-compose file, or even as a custom rancher config that can be uploaded to another rancher instance?

Thanks

---

<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:** [July 16, 2015, 6:17pm UTC](https://forums.suse.com/t/export-config-as-docker-compose-for-each-host/108/2 "2015-07-16T18:17:13Z")

</div>

There is no way to export the config for a particular host. We allow exporting docker-compose and rancher-compose files of particular stacks (new term in current latest, v0.28.0) or projects (previous term). You can set up your project/stack and [export the configuration](http://docs.rancher.com/rancher/rancher-ui/applications/stacks/). [Using Rancher-compose](http://docs.rancher.com/rancher/rancher-compose/), you can use a `rancher-compose up` command and import the configuration into Rancher. To assign services/containers to specific hosts, you can use [host labels](http://docs.rancher.com/rancher/rancher-ui/infrastructure/hosts/#host-labels) and [scheduling rules in the service](http://docs.rancher.com/rancher/rancher-ui/applications/stacks/adding-services/#scheduling-services). The scheduling rules in the service will translate into [scheduling using labels in rancher-compose](http://docs.rancher.com/rancher/rancher-compose/scheduling/).

---

<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:** [September 9, 2015, 2:31am UTC](https://forums.suse.com/t/export-config-as-docker-compose-for-each-host/108/3 "2015-09-09T02:31:39Z")

</div>


