Skip to content
nicokant edited this page Jul 12, 2023 · 3 revisions

To deploy a new version of the tasking manager as a first thing backup the database and the current configurations. IMPORTANT: in order to have a consistent backup you must stop all the services first.

cd /srv/tasking-manager
docker-compose stop
cd /srv
cp -r postgresql{,.bak}    # or equivalent name, also inserting the date and/or the version tag in the name of the backup could be useful
cp -r custom{,.bak}
cd tasking-manager
vi docker-compose.yml

Inside the docker-compose.yml file change the tag of frontend and backend image, example:

x-backend-config: &backend
  image: ghcr.io/osmitalia/osmit-tm-backend:v4.5.4-osmit  # change here
  env_file: 
    - tasking-manager.env


frontend:
    image: ghcr.io/osmitalia/osmit-tm-frontend:v4.5.4-osmit   # change here
    container_name: tm-frontend

Use correct the tag you want to deploy.

cd /srv
cp /srv/tasking-manager/* /srv/custom   # update the copy of the current configuration
cd /srv/tasking-manager/
docker-compose pull
docker-compose up -d

NOTE: docker images use a lot of space, sometimes could be helpful to run docker system prune to clean up unused images.

Clone this wiki locally