Skip to content

Allow 'instance' parameter in database.yml to be set via environment variable #325

Description

@buhlmann-thomas-rix

When using MS SQL Server with a named instance as database server, it is required to set the name of the instance in the instance parameter in config/database.yml. Using sql-server-host\instance_name for host parameter does not work.

Please introduce a new environment variable, e.g. REDMINE_DB_SQLSERVER_INSTANCE, that allows setting the name of the database instance to connect to.

Currently, I created a workaround by exporting the config/database.yml file via a Docker volume to my local filesystem and altering its contents manually. But this should not be the official way doing this.

Working example:

production:
  adapter: "sqlserver"
  host: "sql-server-host"
  instance: "instance_name"
  port: "61602"
  username: "sql-username"
  password: "super-secret-sql-password"
  database: "REDMINE"
  encoding: "utf-8"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions