teamcity-docker-server icon indicating copy to clipboard operation
teamcity-docker-server copied to clipboard

Add DB connection properties environment variables

Open efim-a-efim opened this issue 8 years ago • 3 comments

I think it will be perfect to add an ability to specify external DB connection properties (JDBC connection string) through docker environment. Currently this image breaks JetBrains best practice to use external DB for production purposes. Maybe this task will require adding all DB drivers to this image.

efim-a-efim avatar Oct 13 '16 16:10 efim-a-efim

Before doing docker run you could place proper database.properties file into <TC DataPath>/config/ As <TC DataPath> would be mapped inside container, TeamCity should properly read and apply it

VladRassokhin avatar Apr 18 '17 13:04 VladRassokhin

@VladRassokhin this is not docker-way where we get this file? or it can read any random format?

vshuraeff avatar May 30 '17 17:05 vshuraeff

@Svolentin Contributions are welcomed.

Example files can be found as <TC_Data_Dir>/config/database.*.template on running TeamCity server. More details in documentation.

VladRassokhin avatar May 30 '17 17:05 VladRassokhin