Prerequisite:
- Have a Postgres and a Redis instance running. Using helm to deploy is strongly recommended. It's really easy to use.
Steps:
- Create
discourse
user and database in PostgreSQL. Ensure thatdiscourse
is a superuser unless it will causecannot create extension hstore
error when building Discourse container. - Copy web_only.yml to
discourse_docker/containers
and edit it to meet your need - Build Docker image using
./launcher bootstrap web_only
. If you want to upload image to your private hub, you can do so. - Edit
k8s_deploy/01pvc.yaml
. Typically you would like to change storage class. I use nfs here. - Edit
02discourse.yaml
and03service.yaml
if you need to. This is entirly optional. kubectl apply -f k8s_deploy
and you will see your app running. Use [ClusterIP]:80 to see your app now.
References: