⚠ This page is a WIP and not finished yet. ⚠ Potential optimization we should consider: Put ReSeeD into read-only mode using the admin web interface before creating the backup, und disable read-only mode again after the instance has been started with the new image (but before any manual migrations have been performed). Possible issue: If the new reseed images perform some automatic migration steps on first start, those might collide with read-only mode still being enabled at this point.
Execute as user reseed
on the VM on which your ReSeeD
instance is running:
cd reseed
docker compose -f docker-compose.yml down
volumes
directoryThis step is specific to each ReSeeD instance. For example, you could do something like
# This requires root because most files and directories will be owned by other user IDs
sudo cp -a volumes ../volumes_OLD_IMAGE_TAG # e. g. volumes_develop-0-gf45f676_2025-01-17T09-04-42UTC
.env
fileThis is done by checking the git history of the .env.template
file in the respective branch of the ReSeeD git repo from which you built your container images.
⚠️ IMPORTANT!!! - Update the value of the DOCKER_IMAGE_TAG
variable in your current .env
file when deploying new or freshly built ReSeeD images. If Docker gets restarted, it will start up the containers with the corresponding image tags (which in most cases should ideally be the latest images, e. g. on ReSeeD update deployment)! ⚠️
create_volume_directories.sh
Update the create_volume_directories.sh
script to the version from the ReSeeD git branch from which you built the container images that you are deploying. Then execute the script:
./create_volume_directories.sh
docker-compose.yml
fileThis is done by checking the git history of the docker-compose.yml
file in the respective branch of the ReSeeD git repo from which you built your container images.
The check can be done like this:
cd GIT_DIRECTORY
git fetch --all BRANCH
git checkout BRANCH
diff --color -rup PATH/TO/ACTUAL/docker-compose.yml docker-compose.yml
If there are changes (and you want to overwrite your current docker-compose.yml
file with those):
cp -a docker-compose.yml PATH/TO/ACTUAL/docker-compose.yml
cd GIT_DIRECTORY
docker compose -f docker-compose.yml up -d
# Follow and check logs during start of the containers:
docker-compose -f docker-compose.yml logs --follow
In general, this step should take between 2 and 5 minutes. A good indicator/rule of thumb is to watch top
and wait until no processes with more than 10% of CPU load are running for at least 10 seconds.