Note

How to Install Discourse Plugins on Coolify and Docker

Access the Docker Container (Web UI)

Once Discourse is up and running, you can install plugins via Coolify by accessing the terminal for your Discourse container.

Go to Terminal>discourse container.

Screenshot of Coolify dashboard with yellow arrow pointing to terminal menu item, and the discourse container option highlighted from select dropdown menu
Click the terminal menu, then choose your container - it'll say discourse.

Plugin Installation Steps

Once your container is logged into, the steps below will install a plugin (which I found on the Bitnami website):

  1. Open the discourse install directory:

cd /opt/bitnami/discourse
  1. install the plugin from the GItHub Url:

RAILS_ENV=production bundle exec rake plugin:install repo=PLUGIN_REPO_URL
  1. Precompile new plugin assets:

RAILS_ENV=production bundle exec rake assets:precompile
  1. Finally, run the database migrations - this is needed for plugins that require database changes, such as Discourse Reactions plugin.

RAILS_ENV=production bundle exec rake db:migrate

Comments

Enjoyed this?
Author avatar

Graeme Fulton

Making Prototypr and Letter.so

Robot illustration