# Prefered way for this setup!

**URL:** <https://forums.suse.com/t/prefered-way-for-this-setup/4328>\
**Category:** General\
**Created:** [October 16, 2016, 4:31am UTC](https://forums.suse.com/t/prefered-way-for-this-setup/4328 "2016-10-16T04:31:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gowrav-vishwakarma](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@gowrav-vishwakarma](https://forums.suse.com/u/gowrav-vishwakarma)\
**Post date:** [October 16, 2016, 4:31am UTC](https://forums.suse.com/t/prefered-way-for-this-setup/4328/1 "2016-10-16T04:31:33Z")

</div>

Hi,

Great products, kudos !!

I am a bit confused to startup Rancher with my settings. So, here is my requirement and problem

Problem 1:  
I want to create swarm environment, that, I can do with docker-compose.yml file. but how to I tell to fetch my recent git code and run composer install. Do I need to create separate image for my application. if yes, what should be my docker-compose content to create swarm in RANCHER.

My application is simple apache2, php-fpm-mariadb setup and, we are constantly updating code. We do want downtime free update of code. Is it possible with RANCHER and a guide is more than welcome. TIA.

Problem 2:  
Does RANCHER on high-availability also setup to replicate volumnes? so if my user uploads a file and server goes down the same file can be retrieved from second server.

This (apache+php+mariadb+code on git) is pretty common, do we have any tutorial on this complete set? if yes, please provide link. That tells complete development =\> deploy cycle.

Better it its with load balancing …
