Installing Discourse and Ghost on the same Droplet

Can I safely install Discourse and Ghost on the same Droplet?

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 pipe)을 통해 콘텐츠를 서빙하도록 설정하고, Ghost 서버로의 호출은 Ghost가 리스닝하는 내부 주소 0.0.0.0:2386으로 리다이렉트하도록 구성했습니다.

현재는 Ghost 콘텐츠도 유닉스 소켓으로 서빙할 수 있는지 확인 중입니다.

제 서버는 1GB 메모리와 1 vCPU 구성입니다.
하지만 정상적으로 작동하지 않습니다. 지속 가능한 CPU 사용량 한계를 초과합니다.
적어도 재구성이나 재빌드가 필요할 때, 시스템이 너무 느려집니다.
RAM 한계보다는 CPU 사용량 문제인 것 같습니다.
2코어와 2GB RAM이 더 적절해 보입니다.

동일한 구성의 t2.micro 인스턴스에서는 부드럽게 실행되는 것으로 보입니다.
하지만 AWS의 가격 정책은 비용 예측이 너무 복잡합니다.

현재는 Ghost와 Discourse를 각각 별도의 인스턴스로 실행하는 것이 2코어 4GB 메모리의 Lightsail 서버를 사용하는 것보다 더 저렴하고 적절한지 평가해야 하는 상황입니다.