YouTrack Standalone 2018.1 Help

Database Location for a Docker Installation

As YouTrack service runs inside a docker container, you can change only the location of the database on the hosted 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.

  1. Back up the database. Just in case.
  2. Stop the YouTrack docker container. For specific instructions, see Stop and Run Docker Container.
  3. Create a new directory for the database.
  4. Move the content of the current database directory (data) to the new directory.
  5. Provide the user 13001:13001 that runs YouTrack service inside the container with the access permissions to the new database directory. For more details, see the Install YouTrack Docker Container page.
  6. Run the docker container with the new path to the database on hosting machine:
    docker run -it --name <youtrack-server-instance> \ -v <path to new data directory>:/opt/youtrack/data \ -v <path to conf directory>:/opt/youtrack/conf \ -v <path to logs directory>:/opt/youtrack/logs \ -v <path to backups directory>:/opt/youtrack/backups \ -p <port on host>:8080 \ jetbrains/youtrack:<version>
    • YouTrack service starts with the data directory inside the container (/opt/youtrack/data) mapped to the new database location on the hosting machine.

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

Last modified: 9 March 2018