So you want to install a plugin on your Discourse instance? Great, let’s get started!

In this tutorial, we’ll install Discourse Spoiler Alert plugin.

  • Get the plugin’s GitHub or Bitbucket git clone url.

  • Add the plugin’s repository url to your container’s app.yml file:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git

(Add the plugin’s git clone url just below git clone https://github.com/discourse/docker_manager.git)

  • Rebuild the container:
cd /var/discourse
./launcher rebuild app

That’s it, you’ve successfully installed the Discourse Spoiler Alert plugin on your Discourse instance!

Source: https://meta.discourse.org/t/install-a-plugin/19157