Until early 2021 the following Docker-Compose configuration was in place:
version:'3'services:dataonly:image:themis-registry.promyze.com/themis-datacontainer_name:dataonly-containervolumes: - ./themis:/shared - ./data:/data/db - ./log:/data/logmongodb:image:themis-registry.promyze.com/themis-mongodb:2.6.12container_name:mongodb-containervolumes_from: - dataonlyports: - 27017themis:image:promyze/promyze:4.12.0container_name:themis-containerenvironment: - THEMIS_URL=http://localhost:3001#REPLACE WITH THE FULL URL OF THEMISdepends_on: - mongodbports: - 3000:3000# Replace the left part by the port of your choice - 3001:3001# Replace the left part by the port of your choicevolumes_from: - dataonly
As we now recommand to use Mongo 4.X as a database, and since the Docker-Compose file has evolved, here a quick step-by-step migration guide:
1) Backup current data
First of all, we'll create a dump of the current database and export it outside the container:
$> cd <HOME_PACKMIND_DIRECTORY>
$> ls themis/
themis.2024-03-07.00-00-01.tar.gz
themis.2024-03-07.08-55-00.tar.gz
So our backup are now available on the host machine.
Now we're going to apply the following modification to the docker-compose.yml file to add the new container Mongo 4.4:
version:'3'services:dataonly:image:themis-registry.promyze.com/themis-datacontainer_name:dataonly-containervolumes: - ./themis:/shared - ./data:/data/db - ./log:/data/log################ Here we insert the Mongo 4 container mongodb-4:image:mongo:4.4container_name:mongodb4-containervolumes: - ./mongodb4:/data/dbports: - 27017mongodb:image:themis-registry.promyze.com/themis-mongodb:2.6.12container_name:mongodb-containervolumes_from: - dataonlyports: - 27017themis:image:promyze/promyze:4.12.0container_name:themis-containerenvironment: - THEMIS_URL=http://localhost:3001#REPLACE WITH THE FULL URL OF THEMISdepends_on: - mongodbports: - 3000:3000# Replace the left part by the port of your choice - 3001:3001# Replace the left part by the port of your choicevolumes_from: - dataonly