odoo / docker

Other
931 stars 1.51k forks source link

Database name configuration #486

Closed ananthb closed 5 months ago

ananthb commented 5 months ago

My platform needs me to use a database name that isn't postgres. This is hardcoded right now. Can this be exposed as a configuration option?

I can raise a PR for this.

My platform also exposes the DB connection string as one url in the postgres://... url form. Can this be supported too?

Thoughts?

amh-mw commented 5 months ago

See https://github.com/odoo/docker/pull/426, https://github.com/odoo/docker/pull/459 or https://github.com/odoo/docker/pull/482

ananthb commented 5 months ago

Closing in favour of #394.

Hatem-Zegnani commented 4 months ago

@ananthb @amh-mw

Any solution so far ? I'vd been through all threads but nothing is really proposing a work around the hardcoded "postgres" database name. Please advise..

ananthb commented 4 months ago

I set the database name in odoo.conf and it worked.

[options]
db_name = your_db_name_here

Source: https://github.com/odoo/docker/issues/394#issuecomment-953670441