# Installazione della cartella docker-discourse in /var/discourse

**URL:** https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633
**Category:** Self-hosting
**Created:** [27 Gennaio 2019, 5:50am UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633 "2019-01-27T05:50:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![abhigyank](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@abhigyank](https://meta.discourse.org/u/abhigyank)
#### Post date: [27 Gennaio 2019, 5:50am UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633/1 "2019-01-27T05:50:59Z")

</div>

Hello everyone,

The docker installation suggests to install discourse in the `/var/discourse` folder. In our server, we use Docker containerization technology to isolation application, and have a `workspace` folder in the home directory into which each app goes in with its docker container. I am wondering here as to what is the necessity as to install discourse in `/var/discourse` ? Could it also be installed in `~/workspace/discourse` ?

---

<div class="post-metadata">

### Author: ![sau226](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sau226/32/302324_2.png) [@sau226](https://meta.discourse.org/u/sau226)
#### Post date: [27 Gennaio 2019, 7:51am UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633/2 "2019-01-27T07:51:06Z")

</div>

It would be _theoretically_ be possible for you to install Discourse in such a manner however I would **not** recommend it as there are [multiple hard coded paths](https://github.com/discourse/discourse_docker/search?q=%2Fvar%2Fdiscourse&unscoped_q=%2Fvar%2Fdiscourse) in the code where the software depends upon Discourse code being installed in `/var/discourse`. This could easily be solved by running a fork though however you may fall behind with updates.

Disclaimer: I am speaking for myself only and not on behalf of the people who develop the software. If you are a member of the Discourse team feel free to clarify or rebuff my point if needed.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27 Gennaio 2019, 8:06am UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633/3 "2019-01-27T08:06:51Z")

</div>

Hmm I don’t think that is true, your search is hitting a lot of barely related stuff.

That said I do recommend following the standard path convention unless you have compelling reasons not to.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [27 Gennaio 2019, 12:51pm UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633/4 "2019-01-27T12:51:34Z")

</div>

> [@abhigyank](#):
>
> Could it also be installed in `~/workspace/discourse` ?

After setting up your site details, adjust the paths for the volumes in the app.yml. That should be enough.

---

<div class="post-metadata">

### Author: ![abhigyank](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@abhigyank](https://meta.discourse.org/u/abhigyank)
#### Post date: [28 Gennaio 2019, 5:55am UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633/5 "2019-01-28T05:55:01Z")

</div>

Thank you for the information.  
So I understand that it is not impossible to do so. So the only changes that takes place is that after running `./discourse-setup`, I need to change the paths for volumes in the generated `app.yml` file. Is this correct?  
Doesn’t the setup tool make any assumptions that the installation is taking place in /var/discourse ? If yes, where do I have to make to those changes?  
Again thank you so much for your time.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [28 Gennaio 2019, 11:20am UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633/6 "2019-01-28T11:20:48Z")

</div>

The setup tool mostly fills the app.yml for you, so all you need is fixing the paths on that file afterwards.

---

<div class="post-metadata">

### Author: ![abhigyank](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@abhigyank](https://meta.discourse.org/u/abhigyank)
#### Post date: [28 Gennaio 2019, 11:37am UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633/7 "2019-01-28T11:37:25Z")

</div>

Thanks for letting know. I’ll try that out and get back in case of any issues regarding that! Thanks again.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [27 Febbraio 2019, 11:37am UTC](https://meta.discourse.org/t/installing-docker-discourse-folder-in-var-discourse/107633/8 "2019-02-27T11:37:27Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
