# Getting started in rancher

**URL:** <https://forums.suse.com/t/getting-started-in-rancher/4674>\
**Category:** Rancher 1.x\
**Created:** [November 20, 2016, 7:09am UTC](https://forums.suse.com/t/getting-started-in-rancher/4674 "2016-11-20T07:09:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwaaas](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mwaaas/32/1611_2.png) [@mwaaas](https://forums.suse.com/u/mwaaas)\
**Post date:** [November 20, 2016, 7:09am UTC](https://forums.suse.com/t/getting-started-in-rancher/4674/1 "2016-11-20T07:09:40Z")

</div>

I have managed to run rancher server. but would like to have db to be external.

So I used the docker-compose file.  
db:  
environment:  
- MYSQL\_DATABASE=cattle  
- MYSQL\_PASSWORD=cattle  
- MYSQL\_ROOT\_PASSWORD=cattle  
- MYSQL\_USER=cattle  
image: 'mysql:8.0’  
ports:  
- '3308:3306’  
rancher:  
environment:  
- CATTLE\_DB\_CATTLE\_MYSQL\_HOST=db  
- CATTLE\_DB\_CATTLE\_MYSQL\_NAME=cattle  
- CATTLE\_DB\_CATTLE\_MYSQL\_PORT=3306  
- CATTLE\_DB\_CATTLE\_PASSWORD=cattle  
- CATTLE\_DB\_CATTLE\_USERNAME=cattle  
image: 'rancher/server:stable’  
links:  
- db  
ports:  
- ‘8080:8080’

But keep on getting errors, anyone with a docker-compose file that works great with out any error

---

<div class="post-metadata">

**Author:** ![leodotcloud](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/leodotcloud/32/3103_2.png) [@leodotcloud](https://forums.suse.com/u/leodotcloud)\
**Post date:** [December 19, 2016, 4:58pm UTC](https://forums.suse.com/t/getting-started-in-rancher/4674/2 "2016-12-19T16:58:51Z")

</div>

Taking a quick look, this seems to be wrong:

> [@mwaaas](#):
>
> ports: - ‘3308:3306’
