fdcastel / firebird-docker

Docker images for Firebird Database
25 stars 6 forks source link

Allow connections via databases.conf #8

Open wolfgangreder opened 2 months ago

wolfgangreder commented 2 months ago

Currently it is required to build the connection url with the full file path. It would be nice to register databases in databases.conf

fdcastel commented 2 months ago

Could you elaborate a bit more?

What is your use case?

What problem would this intend to solve?

wolfgangreder commented 2 months ago
  1. I am forced to use a (container internal) path in the jdbc url: eg. jdbc:firebirdsql://localhost:3050//var/lib/firebird/data/test.fbd instead of jdbc:firebirdsql://localhost:3040/test.
  2. Per database configuration requires manipulation of database.conf.
  3. I think it would be generally wise to allow externalization of configuration (not only database.conf), log files and security database. This would allow easy backup and restore.
bothermenot commented 2 months ago

you can mount databases.conf (firebird.conf, udf libraries directories) as volumes eg. -v /path/to/databases.conf:/opt/firebird/databases.conf

wolfgangreder commented 2 months ago

you can mount databases.conf (firebird.conf, udf libraries directories) as volumes eg. -v /path/to/databases.conf:/opt/firebird/databases.conf

Well, that should be possible. See https://github.com/jacobalberty/firebird-docker

bothermenot commented 2 months ago

So when you mount databases.conf as suggested you should be able to connect to databases as defined in the file instead of using full container path