Change Database Location for Docker

Last modified: 08 March 2021

The default directory where Hub stores data contains the following subdirectories:

When you copy your existing database to the new location, make sure the new location uses the same folder structure that is shown here.

Structure of the Hub database directory

As Hub service runs inside a docker container, you can change only the location of the database on the host machine. In this case you need to move the database to a new location, and then specify the new path as parameter of the docker run command.

The same way you can change location of the conf, logs, backups, and temp directories.