# Deploying discourse on server already running another rails app

**URL:** <https://meta.discourse.org/t/deploying-discourse-on-server-already-running-another-rails-app/38467>\
**Category:** Self-hosting\
**Created:** [Janvier 25, 2016, 7:48 UTC](https://meta.discourse.org/t/deploying-discourse-on-server-already-running-another-rails-app/38467 "2016-01-25T19:48:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![adass](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adass/32/49627_2.png) [@adass](https://meta.discourse.org/u/adass)\
**Post date:** [Janvier 25, 2016, 7:48 UTC](https://meta.discourse.org/t/deploying-discourse-on-server-already-running-another-rails-app/38467/1 "2016-01-25T19:48:34Z")

</div>

Hi,

I am trying to deploy a docker discourse on a linux server already running an apache + passenger + rails application. First I thought it would be easy – just setup docker to use another port (8080), but then I found out that serving from non-default port creates some issues with assets like avatars [Hosting on a non-default port causes catch-22](https://meta.discourse.org/t/hosting-on-a-non-default-port-causes-catch-22/19279 "Hosting on a non-default port causes catch-22").

So, do you had similar issue? How did you resolved it? All suggestions are welcomed 😄

---

_[View the full topic](https://meta.discourse.org/t/deploying-discourse-on-server-already-running-another-rails-app/38467)._
