# Rancher OS and docker-compose

**URL:** <https://forums.suse.com/t/rancher-os-and-docker-compose/6365>\
**Category:** RancherOS\
**Created:** [May 12, 2017, 8:22am UTC](https://forums.suse.com/t/rancher-os-and-docker-compose/6365 "2017-05-12T08:22:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanocog](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@stefanocog](https://forums.suse.com/u/stefanocog)\
**Post date:** [May 12, 2017, 8:22am UTC](https://forums.suse.com/t/rancher-os-and-docker-compose/6365/1 "2017-05-12T08:22:25Z")

</div>

Sorry for maybe OTA answer…i’m new to RancherOS.  
Actually i use ubuntu and docker-compose to orchestrate docker container, i wolud switch to small SO like RancherOS, i suppose can’t use docker-compose into RancherOS…i see “ros service” command, that’s similar to docker-compose but I do not understand how it works, i can use docker-compose yml? i have tried with “-f compose-file” but nothing…i find no guide on this topic, someone, can anyone help me?

Thanks

---

<div class="post-metadata">

**Author:** ![onionekanobi](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@onionekanobi](https://forums.suse.com/u/onionekanobi)\
**Post date:** [May 16, 2017, 7:53pm UTC](https://forums.suse.com/t/rancher-os-and-docker-compose/6365/2 "2017-05-16T19:53:19Z")

</div>

Hi, did you install the server gui with:

`sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server`

Wait a few minutes, then go you your RancherOS url on port: 8080, there you can register a new local host. After that you can download ranchor compose from the server gui, it’s on the bottom right. Install it anywhere on your rancher server.

I got the info from here: [http://codywhite.me/installing-and-configuring-rancherserver-on-rancheros/](http://codywhite.me/installing-and-configuring-rancherserver-on-rancheros/)

Dont forget the create some api keys, otherwise the ranchor-compose does not work!

Hope this helps

Cheers.  
Onno

---

<div class="post-metadata">

**Author:** ![tzrlk](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tzrlk/32/2533_2.png) [@tzrlk](https://forums.suse.com/u/tzrlk)\
**Post date:** [June 9, 2017, 1:36am UTC](https://forums.suse.com/t/rancher-os-and-docker-compose/6365/3 "2017-06-09T01:36:29Z")

</div>

Running the internal rancher-server service works as well. Just run:

```
sudo ros service enable rancher-server
sudo ros service up rancher-server

```

If you want to see what services are available (not many), just run:

```
sudo ros service list

```

That’s all from a combination of the docs, and `--help` commands.

---

<div class="post-metadata">

**Author:** ![anlek](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/anlek/32/209_2.png) [@anlek](https://forums.suse.com/u/anlek)\
**Post date:** [February 12, 2018, 9:58pm UTC](https://forums.suse.com/t/rancher-os-and-docker-compose/6365/4 "2018-02-12T21:58:47Z")

</div>

> [@tzrlk](#):
>
> sudo ros service up rancher-server

That worked well, but how do I connect to an existing mysql mount with the data?
