# 我只看到 Web 服务器的默认页面，而不是 Discourse（Jelastic 配合 Docker 镜像）

**URL:** <https://meta.discourse.org/t/i-only-get-the-default-page-from-the-webserver-and-not-discourse-jelastic-with-docker-image/111128>\
**Category:** Self-hosting\
**Tags:** unsupported-install, hosting\
**Created:** [2019年三月8日 23:22 UTC](https://meta.discourse.org/t/i-only-get-the-default-page-from-the-webserver-and-not-discourse-jelastic-with-docker-image/111128 "2019-03-08T23:22:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sm-a](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sm-a/32/133474_2.png) [@sm-a](https://meta.discourse.org/u/sm-a)\
**Post date:** [2019年三月8日 23:22 UTC](https://meta.discourse.org/t/i-only-get-the-default-page-from-the-webserver-and-not-discourse-jelastic-with-docker-image/111128/1 "2019-03-08T23:22:33Z")

</div>

First Discourse 是一款出色的软件，我对此感到非常兴奋。不过，我在安装方面遇到了一个问题。我想使用 Jelastic 搭配 Docker 镜像。然而，当我加载 Jelastic 的 Docker 镜像时，我只看到了 Web 服务器的默认页面，而不是 Discourse。

我哪里做错了？我该怎么办？

希望有人能帮我。

谢谢，  
Sven

---

<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:** [2019年三月8日 23:34 UTC](https://meta.discourse.org/t/i-only-get-the-default-page-from-the-webserver-and-not-discourse-jelastic-with-docker-image/111128/2 "2019-03-08T23:34:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年三月9日 00:39 UTC](https://meta.discourse.org/t/i-only-get-the-default-page-from-the-webserver-and-not-discourse-jelastic-with-docker-image/111128/3 "2019-03-09T00:39:55Z")

</div>

Welcome, @sm-a. You really need to follow [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md). The docker image needs considerable configuration to create a usable instance.

---

<div class="post-metadata">

**Author:** ![Oleksandr\_Patuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oleksandr_patuk/32/133622_2.png) [@Oleksandr\_Patuk](https://meta.discourse.org/u/Oleksandr_Patuk)\
**Post date:** [2019年三月11日 11:25 UTC](https://meta.discourse.org/t/i-only-get-the-default-page-from-the-webserver-and-not-discourse-jelastic-with-docker-image/111128/4 "2019-03-11T11:25:01Z")

</div>

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](https://docs.jelastic.com/setting-up-environment)):

```
- 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)

```

 ![3%20-%20Configuring%20environment](https://global.discourse-cdn.com/meta/original/3X/1/c/1ca21fc4a91bf0fe577fa2d4191064dec4ade8d1.png)

**2)** Start the created environment and execute the following commands in the container console (via SSH Web - ([SSH Access to Container: Manage Your Server Remotely | Virtuozzo Blog](https://jelastic.com/blog/ssh-to-container/))):

```
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](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) (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 Management - PaaS for DevOps hosting | Virtuozzo](https://jelastic.com/contact) (please remove underline on begin of link (added because account limitation))).
