document/content/docs/self-host/upgrading/upgrade-intruction.en.mdx
Upgrading FastGPT involves two steps:
GitHub Container Registry
Alibaba Cloud
An image consists of the image name and a Tag. For example, registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.6.1 refers to the 4.6.3 version image. Check Docker Hub or the GitHub repository for details.
Update the image - Confirm changes.
If you need to modify the configuration file, scroll down to the Configuration File section to make changes.
Simply modify the image: field in the yml file, then run:
docker-compose pull
docker-compose up -d
After updating the images, check the version notes in the documentation. Versions that require an upgrade script are typically labeled with "includes upgrade script". Open the corresponding documentation and follow the instructions to run the upgrade script -- in most cases, you just need to send a POST request.
When there are significant changes to the database schema that cannot be handled through default values, or when the migration logic is complex, an upgrade script is used to update certain database fields. Following the initialization steps carefully will not cause any data loss. However, if the data volume is large, the initialization may take a while, during which the service may be temporarily unavailable.
{{host}}?{{}} denotes a variable. {{host}} refers to a variable named "host", which is your server's domain name or IP address.
On Sealos, you can find your domain name as shown below:
You can find it in the environment section of your docker-compose.yml file -- it's the value of ROOT_KEY.
On Sealos, you can find it in the environment variables panel shown in the image above.
Back up your data first!
You can upgrade to the latest version and then run all the upgrade scripts in order. However, for stability, we recommend upgrading one version at a time. For example, if your current version is 4.4.7 and you need to upgrade to 4.6:
Upgrade one version at a time.