Note

How to Install Discourse Plugins on Coolify and Docker

To get Discourse up and running on Coolify, I followed this guide by Cristian Buleandra:

The article provdes a Docker Compose .yml file that works for Coolify (with a few tweaks – check the comments).

It essentially installs the Bitnami Docker Image.


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

That's it, to uninstall a plugin, follow the guide here.

Share to your friends
Author avatar

Graeme Fulton

Making Prototypr and Letter.so

Robot illustration

Comments