docker icon indicating copy to clipboard operation
docker copied to clipboard

allow change of the databe name via. Docker env var

Open zer0divisi0n opened this issue 3 years ago • 3 comments

https://github.com/odoo/docker/blob/f8212600f6478a15fac9ff3e7d8a926f78435860/14.0/wait-for-psql.py#L21

would it be possible to change the last connection parameter dbname='postgres' to dbname=args.db_name to allow changing the postgres database name

zer0divisi0n avatar Feb 22 '21 19:02 zer0divisi0n

Yeah, this hardcoded database name makes me crazy.

alexsegura avatar Dec 12 '23 21:12 alexsegura

~~14.0 is EOL, so you're out of luck for that version, but I put up a patch for 15.0-17.0~~ PR DOA

amh-mw avatar Dec 12 '23 22:12 amh-mw

would it be possible to change the last connection parameter dbname='postgres' to dbname=args.db_name to allow changing the postgres database name

It's fine that it is hardcoded to postgres here. It's just checking to make sure that the postgres service is available.

amh-mw avatar Dec 12 '23 23:12 amh-mw