Help deploying older versions of Discourse

Finally, let’s summarize.

Our requirement is: install a specific version

  1. Update the local code repository https://github.com/discourse/discourse_docker.git
# Enter the project root directory
cd /var/discourse
# Update to the latest version
git pull
  1. Modify the version to be specified

Edit templates/web.template.yml

params:
  version: release/2026.1
  1. Rebuild
./launcher rebuild app

After making this change, the steps for future updates or upgrades are to first update the local code repository. However, since we have modified the local code, the update might fail. Therefore, it is highly likely that you will need to stash your local changes using git stash, then run git pull to ensure the local repository is up to date. After that, modify the branch you want to upgrade or specify, and finally rebuild.