How to deploy discourse with forked repo?

(Suanfazu) #1

Forked GitHub - discourse/discourse: A platform for community discussion. Free, open, simple. on github and modify some code. But how to deploy it with docker?

(Matt Palmer) #2

You probably want to take a look at this topic.

(Suanfazu) #3

Thanks, Matt.

Below works better for my case:

  1. clone the code to host: /var/app/enabled/discourse
  2. mount the source code to docker container
# vi containers/app.yml
  - volume:
      host: /var/app/enabled/bigcommunity/discourse
      guest: /var/www/discourse

(Matt Palmer) #4

That’s not really deploying Discourse from a forked repo. You’re also breaking all of the standard stuff around exporting logs out of the container. That’s a really unsupported setup you’ve got.

(Suanfazu) #5

OK, I will try yours.

One more question: i’ve installed PostgreSQL on host. How to connect to it from docker discourse?

(Matt Palmer) #6

Look at the web_only.yml sample.