ingobaab
(Ingo Baab)
February 4, 2018, 1:38pm
1
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.
Kind Regards,
Ingo Baab from Germany
pfaffman
(Jay Pfaffman)
February 4, 2018, 3:57pm
2
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
2 Likes
ingobaab
(Ingo Baab)
February 4, 2018, 5:23pm
3
Thank you for this answer, Jay, but I am happy with my installation. Works fine inside Linuxcontainer… (I do not like docker at all…)
pfaffman
(Jay Pfaffman)
February 4, 2018, 5:27pm
4
There are a zillion ways that you might install Discourse that can all work just fine, but only one is supported here.
8 Likes
madbox
(madbox)
November 20, 2018, 11:22am
5
Hi,
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.
sam
(Sam Saffron)
November 21, 2018, 10:44pm
6
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.
1 Like
pfaffman
(Jay Pfaffman)
November 22, 2018, 3:27am
7
You mean an LXC container? I know someone who worked for canonical and had a lot to do with LXC. He uses docker now.
Corsterix
(Tom Knight)
April 2, 2019, 1:53am
8
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:
kernel.keys.maxkeys=2000
kernel.keys.maxbytes=200000
net.ipv4.tcp_mem=182757 243679 365514
net.core.netdev_max_backlog=182757
These are production values for LXD and for me they were neccessary to get Discourse running.
2 Likes
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
1 Like
ashledombos
(Raphaël Jadot)
December 13, 2019, 5:16pm
10
That’s wrong
Just follow the next post from the link above
edit: I installed Discourse the official way inside a LXC container this way
3 Likes