To upload docker images (skip this step if you're just deploying):
gradle.properties
file next to build.gradle
with hub.docker.com credentials:
dockerUser=user
dockerPassword=password
dockerEmail=email
gradle dockerPushImage
docker run -d --name orientdb orientdb
docker cp orientdb:/orientdb/config/ <where to>
docker-compose.yml
docker-compose up
Since remote storage restore available only on Orient Enterprise you have to create plocal storage and then just copy files from one instance to another.
docker run --rm -v <folder with backup>/:/orientdb/backups -v %ORIENT_DATA%/databases:/orientdb/databases orientdb sh -c '/orientdb/bin/console.sh "create database plocal:/orientdb/databases/knet admin admin;restore database /orientdb/backups/<backup file>.zip;disconnect" '
docker-compose down
and remove <volumes>/databases/knet
%ORIENT_DATA%/databases/knet
to <volumes>/databases/knet
docker-compose up