Hello Discourse Friends!
I managed to setup discourse inside a LXD/LXC and want to ask, is there a recommendation how to start the deamon process?
Is there a better ‘method’ than starting it with:
bundle exec rails s -b 0.0.0.0 2>&1 > /var/log/discourse.log
How can this be done with systemd? Thank you in advance.
Ingo Baab from Germany
If you want to install Discourse in anything resembling a production environment, you should follow the cloud install instructions. https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md
Thank you for this answer, Jay, but I am happy with my installation. Works fine inside Linuxcontainer… (I do not like docker at all…)
There are a zillion ways that you might install Discourse that can all work just fine, but only one is supported here.
how to install it using LCX container. I dont want to use docker, because I use proxmox to manage VMs and docker cant be installed in LCX container.
You would be entering uncharted territory and would need to build something that you alone support. The code for discourse docker is open so you could adapt it, I guess.
You mean an LXC container? I know someone who worked for canonical and had a lot to do with LXC. He uses docker now.
I just installed Discourse in a Docker container inside an LXD container, which may seem weird but it’s something LXD was intentionally designed to support.
How to Install Discourse in an LXD / Docker Container
If you encounter problems with Docker / Discourse failing to run in LXD then you’ll likely need to tweak some settings in your host’s /etc/sysctl.conf namely:
net.ipv4.tcp_mem=182757 243679 365514
These are production values for LXD and for me they were neccessary to get Discourse running.
Can you send this guide somewhere else? The site is blocking access for me, and I would also like to install discourse on LXC ProxMox
Just follow the next post from the link above
edit: I installed Discourse the official way inside a LXC container this way