我可以在同一台 Droplet 上安全地安装 Discourse 和 Ghost 吗?
You probably can (if you know how to) but it won’t be ideal.
Certainly. I’ve been very happy with traefik as a front end /reverse proxy and configuring it with docker environment variables. You’ll need at least 2gb of ram, so it’s not going to save you money at the low end of the spectrum. For low volume, 2 small droplets is much easier.
Agreed. The reverse proxy setup makes the slightly higher monthly cost for two droplets worth it by itself. I always get bit by those…
我已经在 Amazon Lightsail 服务器上完成了相关操作。
我安装了 Discourse(当然是在 Docker 中运行),然后使用 docker-compose 安装了 Docker 版本的 Ghost,并创建了 stack.yml 文件进行配置。
接着,我安装了 Nginx 并将其作为前端,配置 Discourse 通过 Unix 管道提供内容,同时将指向 Ghost 服务器的请求重定向到 Ghost 监听的内部地址 0.0.0.0:2386。
现在我正在研究是否也能通过 Unix 管道提供 Ghost 的内容。
我使用的是 1 GB 内存和 1 个 vCPU 的服务器。
但运行效果不佳,CPU 使用率经常超过可持续使用限制。
至少在需要重新配置或重建时,系统会变得非常缓慢。
这看起来是 CPU 使用率的问题,而不是内存限制。
2 个核心和 2 GB 内存似乎更为合适。
在具有相同配置的 t2.micro 实例上,运行似乎很流畅。
但 AWS 的定价过于复杂,难以预测成本。
我们现在需要评估:是分别运行 Ghost 和 Discourse 的实例更经济、更合适,还是直接升级到 2 核 4 GB 内存的 Lightsail 服务器更合适。