Staging インスタンスを同じ Production インスタンスの Docker サーバー上に配置できますか?

Discourseの本番インスタンスをホストしているサーバー上に、Staging環境のDiscordインスタンスを構築するための推奨事項や手順はありますか?

一般的なRailsアプリで行う標準的な手順を想定していますが、Discourse特有のインストール設定や手順を踏まえて、大まかなイメージを把握したいと考えています。

最終的には、設定とセットアップ完了後、本番データベースをStaging環境に同期させることを考えています。

You can do that if you have something like traefik reverse proxying to multiple containers. It’s lots simpler to have two droplets, one of which you could delete when you’re not using it. That way, you’ve still got a Standard Install that’s easy to debug as well as get help here.

EDIT: And if you want a configuration that includes Traefik as the front end with multiple Discourse, WordPress and Ghost containers as well as prometheus and Graphana containers to make pretty graphs I can do that for you.

My preferred way to do that is by keeping backups in an S3 bucket (or GCP or Digital Ocean equivalent). You could have two containers share a backup mount if they’re on the same server, but the S3 solution is really nice and makes it easy to move to a new server should disaster strike.

「いいね!」 2