# Help setting up Rancher for Prod and Dev

**URL:** <https://forums.suse.com/t/help-setting-up-rancher-for-prod-and-dev/3880>\
**Category:** Rancher 1.x\
**Created:** [September 2, 2016, 1:25pm UTC](https://forums.suse.com/t/help-setting-up-rancher-for-prod-and-dev/3880 "2016-09-02T13:25:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deanrather](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/deanrather/32/1641_2.png) [@deanrather](https://forums.suse.com/u/deanrather)\
**Post date:** [September 2, 2016, 1:25pm UTC](https://forums.suse.com/t/help-setting-up-rancher-for-prod-and-dev/3880/1 "2016-09-02T13:25:44Z")

</div>

Hi!

I’m pretty new to Docker and Rancher, but we’re currently growing our team (from 3 to 12 in the last 2 years!) and I’m starting to migrate towards Microservices and a dockerised dev environment.

I’ve come up with a pretty neat dev -\> deployment procedure which can pretty much be summed up as follows:

Production environment:

- All 10 of the services have their images in our registry.
- There’s a `docker-compose.production.yml` which links all the images together into a deployable stack.

Rancher is _great_ for deploying this 🙂

So, the Development environment is:

- Setup a production environment
- Clone down the repo for the microservice you’re working on.
- That microservice contains it’s own `docker-compose.yml` which has `volume`s for the source code dirs.
- Run `microservice$ docker-compose -f /path/to/docker-compose.production.yml -f docker-compose.yml up -d`

Now our developer has 9/10 services running as per the production config, and one service running as per the development config. Great!

My problem is that if I deploy do the developer’s environment via rancher, I can see the rancher stack of containers running there all with the `r_` prefix… But now should I integrate my dev container into the stack?

I’m imagining there may be a solution where I just bring up the dev container for that service, and tell Rancher to use that container instead of the existing one for that service…

I apologise if there’s a simple/obvious solution to this – or if I’m totally over-engineering this. As I said - new to docker. Still haven’t quite got my head around scaling and load-balancers etc…

I’d love to hear your suggestions!

Thanks,  
Dean.

---

<div class="post-metadata">

**Author:** ![Lickwid](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@Lickwid](https://forums.suse.com/u/Lickwid)\
**Post date:** [November 10, 2016, 7:28pm UTC](https://forums.suse.com/t/help-setting-up-rancher-for-prod-and-dev/3880/2 "2016-11-10T19:28:02Z")

</div>

Did you figure this out? I’m running into this problem also, and not sure what the best way to use Rancher for both dev/prod is.
