Stop ReSeeD instance
Execute as user reseed
on the VM on which your ReSeeD
instance is running:
cd reseed
docker compose -f docker-compose.yml down
volumes
directory
Backup This 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
file
Determine updates to the This 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.
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 and execute 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
file
Determine updates to the This 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
Tag the transferred images as latest
DOCKER_IMAGE_TAG
. Change it to the actual value.
# Export the docker image tag from the transferred images
export DOCKER_IMAGE_TAG="v1.0-beta1-159-gabc123d_1970-02-16T12-02-56UTC"
# Check the docker image tag
echo $DOCKER_IMAGE_TAG
docker image tag "reseed-app:${DOCKER_IMAGE_TAG}" "reseed-app:latest"
docker image tag "reseed-web:${DOCKER_IMAGE_TAG}" "reseed-web:latest"
docker image tag "reseed-workers:${DOCKER_IMAGE_TAG}" "reseed-workers:latest"
Start ReSeeD instance again
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.