Requirements
- You will need a running Docker-based metasfresh system.
- Make sure you are using PostgreSQL database version 15 on your metasfresh instance (since release version 5.175). Follow this guide to upgrade your database accordingly.
Steps for Version Update
- Stop all Docker containers.
- Create a backup of the entire current Docker workspace.
tar cvzf ../backup.tar.gz ./<mydocker fir>/* --BACKUP
docker-compose rm
- In the metasfresh-docker directory, change the Dockerfile versions of App, WebAPI, WebUI and DB (in the subdirectories) to the next version number, e.g.,
5.175
.
- Rebuild the images.
docker-compose build --no-cache
- Start the Docker containers.
Alternative Steps
If you want to pull the new Docker files from GitHub directly, please proceed as follows:
- Stop all Docker containers.
- Create a backup of the current Docker workspace.
- Delete the host’s images of app, webui and webapi.
- Get the new Docker files and configurations from GitHub.
- Adjust the hostname in the
docker-compose.yml
file.
- Rebuild the images.
- Start the Docker containers.
Commands
cd metasfresh-docker
docker-compose down
tar cvzf ../backup.tar.gz ./*
git pull
vi ./docker-compose.yml
docker-compose build
docker-compose up -d
If you’ve changed the docker-compose.yml
file (e.g., different ports) and want to save it first, use:
cd metasfresh-docker
docker-compose down
tar cvzf ../backup.tar.gz ./*
cp -a ./docker-compose.yml ../
git pull
mv ../docker-compose.yml ./
docker-compose build
docker-compose up -d
View source file on GitHub.com