# Discourse in a closed intranet

**URL:** <https://meta.discourse.org/t/discourse-in-a-closed-intranet/42449>\
**Category:** Self-hosting\
**Created:** [Avril 12, 2016, 1:47 UTC](https://meta.discourse.org/t/discourse-in-a-closed-intranet/42449 "2016-04-12T13:47:14Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![carbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carbo/32/54170_2.png) [@carbo](https://meta.discourse.org/u/carbo)\
**Post date:** [Février 28, 2017, 1:54 UTC](https://meta.discourse.org/t/discourse-in-a-closed-intranet/42449/17 "2017-02-28T13:54:27Z")

</div>

> [@nishai](#):
>
> I am trying to accomplish the same thing. Do you still have any notes from your success or any resources that you used? DId you have to crawl every discoursexxx.git file and replace references to outside resources?

I installed a local git server in the intranet and cloned the repositories on the git server and then modified the install scripts to point to the local git server. This is the best solution I found, and it allows you to rebuild the app if you need to make config changes.

> [@nishai](#):
>
> Do I need to copy the /var/discourse and /var/lib/docker directories over to the new server as well along with a copy of the [docker.io/discourse/discourse](http://docker.io/discourse/discourse) image?

Saving and load the created docker container will not work as you intend. Since all the data is on volumes which are mapped to the container. So you would need to copy all those volumes which will complicate your install immensely. I suggest the local git server. The other option I used before, was to create a VM on a XenServer on my internet environment and configured it completely on that side and then export it. Then import it in my intranet environment. In order to upgrade versions, I would back up the site through the Discourse backup tool. Recreate the VM with the new version of Discourse. Then export, import and restore the backup… Was also a bit messy… Again the git option seems the best.

---

_[View the full topic](https://meta.discourse.org/t/discourse-in-a-closed-intranet/42449)._
