First Discourse 是一款出色的软件,我对此感到非常兴奋。不过,我在安装方面遇到了一个问题。我想使用 Jelastic 搭配 Docker 镜像。然而,当我加载 Jelastic 的 Docker 镜像时,我只看到了 Web 服务器的默认页面,而不是 Discourse。
我哪里做错了?我该怎么办?
希望有人能帮我。
谢谢,
Sven
First Discourse 是一款出色的软件,我对此感到非常兴奋。不过,我在安装方面遇到了一个问题。我想使用 Jelastic 搭配 Docker 镜像。然而,当我加载 Jelastic 的 Docker 镜像时,我只看到了 Web 服务器的默认页面,而不是 Discourse。
我哪里做错了?我该怎么办?
希望有人能帮我。
谢谢,
Sven
Hello @sm-a,
Discourse won’t be compatible with a PaaS/CaaS out of the box.
I recommend going with a good old VPS, which you can get from Digital Ocean, Vultr, etc for $5.
Welcome, @sm-a. You really need to follow discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub. The docker image needs considerable configuration to create a usable instance.
Hello, @sm-a ! To install Discourse on Jelastic, please follow these steps:
1) Create a new environment using the following parameters (Setting Up Environment | Virtuozzo Dev Docs):
- New environment – Docker – Search — Docker hub – “discourse/base”
- Vertical scaling per node:
- reserved – 25 cloudlets
- scaling limit – 30 cloudlets
- Disc limit- 20 Gb
- Add public IP (IPv4 or IPv6)
2) Start the created environment and execute the following commands in the container console (via SSH Web - (Virtuozzo Application Platform - PaaS for DevOps hosting | Virtuozzo)):
service nginx stop
update-rc.d -f nginx disable
wget -qO- https://get.docker.com/ | sh
service docker start
mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
./discourse-setup
3) Run the installation of Discourse with the such parameters (set in the console during the installation process):
Hostname for your Discourse? [discourse.example.com]:
Email address for admin account(s)? [me@example.com,you@example.com]:
SMTP server address? [smtp.example.com]:
SMTP port? [587]:
SMTP user name? [user@example.com]:
SMTP password? [pa$$word]:
Let's Encrypt account email? (ENTER to skip) [me@example.com]:
4) Optionally, perform fine tuning of the environment - trace the number of used cloudlets and set up with a small encrease as “Reserved cloudlets”.
5) Read the recommendations of the developer Discourse - _discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub (please remove underline on begin of link (added because account limitation))
If you have any additional questions don’t hesitate to ask your hosting provider or contacting us directly via form - _Virtuozzo Application Platform - PaaS for DevOps hosting | Virtuozzo (please remove underline on begin of link (added because account limitation))).