Until early 2021 the following Docker-Compose configuration was in place:
version: '3'
services:
dataonly:
image: themis-registry.promyze.com/themis-data
container_name: dataonly-container
volumes:
- ./themis:/shared
- ./data:/data/db
- ./log:/data/log
mongodb:
image: themis-registry.promyze.com/themis-mongodb:2.6.12
container_name: mongodb-container
volumes_from:
- dataonly
ports:
- 27017
themis:
image: promyze/promyze:4.12.0
container_name: themis-container
environment:
- THEMIS_URL=http://localhost:3001 #REPLACE WITH THE FULL URL OF THEMIS
depends_on:
- mongodb
ports:
- 3000:3000 # Replace the left part by the port of your choice
- 3001:3001 # Replace the left part by the port of your choice
volumes_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-data
container_name: dataonly-container
volumes:
- ./themis:/shared
- ./data:/data/db
- ./log:/data/log
################ Here we insert the Mongo 4 container
mongodb-4:
image: mongo:4.4
container_name: mongodb4-container
volumes:
- ./mongodb4:/data/db
ports:
- 27017
mongodb:
image: themis-registry.promyze.com/themis-mongodb:2.6.12
container_name: mongodb-container
volumes_from:
- dataonly
ports:
- 27017
themis:
image: promyze/promyze:4.12.0
container_name: themis-container
environment:
- THEMIS_URL=http://localhost:3001 #REPLACE WITH THE FULL URL OF THEMIS
depends_on:
- mongodb
ports:
- 3000:3000 # Replace the left part by the port of your choice
- 3001:3001 # Replace the left part by the port of your choice
volumes_from:
- dataonly