The discussion revolves around installing Docker Discourse in a custom directory like ~/workspace/discourse instead of the default /var/discourse. abhigyank asks if this is possible, and sau226 explains that while it’s theoretically possible, it’s not recommended due to hard-coded paths in the codebase that assume /var/discourse. codinghorror questions the extent of these dependencies. Falco clarifies that the setup tool generates an app.yml file, and users can manually adjust the volume paths to use a custom directory. abhigyank confirms understanding and plans to proceed with modifying the app.yml after setup.
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 ?
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 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.
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.