# Upgrade

# Docker-compose

Make sure to backup before upgrading.

Stop the current Ontopic Studio version:

docker compose -f docker-compose.yml -f tutorial/docker-compose-tutorial.yml down

If you are in the main branch, pull the changes:

git pull

Otherwise, fetch the new tags and checkout the desired one:

git fetch
git checkout <new_version_number>

Start Ontopic Studio:

docker compose -f docker-compose.yml -f tutorial/docker-compose-tutorial.yml pull && docker compose -f docker-compose.yml -f tutorial/docker-compose-tutorial.yml up

# AWS Marketplace

On the current server, create a snapshot of the second volume (/dev/xvdba). When creating a new EC2 instance from the Marketplace, in the section Configure storage, click on Advanced and select the snapshot you created for the second volume (/dev/xvdba). Check that the new EC2 instance is working and decommission the previous one.

# Desktop

A popup message will appear to inform the user about a new available version. The download and upgrade happens automatically in background.