pre-configuring database connection


I'm scripting a virtual machine to

  • pull Docker containers with TC Server, TC Agent and a database;
  • start all of them and get TC environment running with minimum clicks by the user

TC database connection configuration is stored in <data>/config/ file. However if I attempt to prepare the configuration file and JDBC driver before the start of TC server, the last one complains: "The Data Directory contains files or directories that don't belong to TeamCity."

Is there a way to let TC server to accept the exising file and to create the database with provided connection details?

With kind regards,

1 comment
Comment actions Permalink

Hi Viktor,

The behavior has been changed in TeamCity 9.0, now TeamCity considers the existing '' file. Please try new version.


Please sign in to leave a comment.