Finally, let’s summarize.
Our requirement is: install a specific version
- 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
- Modify the version to be specified
Edit templates/web.template.yml
params:
version: release/2026.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 rungit pullto ensure the local repository is up to date. After that, modify the branch you want to upgrade or specify, and finally rebuild.