-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to specify the database name? #394
Comments
What do you mean by "external database"? Your postgres server/container is in the same server (where Docker is installed) or in a separate one? |
Thank you for your reply! |
Hi @Etren, ...
odoo:
image: odoo:15
environment:
- HOST=XX.XX.XX.XX
- PORT=5432 #default
- USER=odoo
- PASSWORD=odoo
... For database, you have to mount/edit "odoo.conf" and specify it in "db_name" If it is not clear enough, let me now ;) |
Thank you for your reply!
postgreSQL runs directly on the host, and the firewall has released port 5432. My command to create the odoo container is: |
”#343 How to connect to the host database?“ |
Same problem here for me. I'm trying to connect my odoo container to rds / localhost Postgres but received connection refused. |
It would be nice, to be able to specify database name with a variable, just like |
@arabkhemar How can add database name into odoo.conf before to run docker? |
same question here... does any one has already do it? |
docker run --name odoo -p 8069:8069 --link postgreSQL:db -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo docker logs -f odoo |
You can set the db_host parameter in your odoo.conf. For example: In your compose you can set it like this: and in your odoo.conf (preferable inside the folder ./config) with the other necessary parameters, you just set: I hope it helps you. |
I think this needs adjustment. The least you can do is to use a decent database name like "odoo". "postgres"? Imagine having a huge DB cluster an in between all the postgresql databases there is one called "postgres". |
Something like:
Hope this helps. @Etren-zz if this answers your question please close this issue. Special note, the postgresql image needs to be set to db of |
Offer an example Docker Compose that will set the database name for Odoo. - odoo/docker#394 - odoo/docker#358 - odoo/docker#331
Offer an example Docker Compose that will set the database name for Odoo. - odoo/docker#394 - odoo/docker#358 - odoo/docker#331 Additional changes - Title case name Postgres - Correct indentation of prior example
Offer an example Docker Compose that will set the database name for Odoo. - odoo/docker#394 - odoo/docker#358 - odoo/docker#331 Additional changes - Title case name Postgres - Correct indentation of prior example
When deploying odoo 15 with docker, I want to connect to an external database.
How do I specify the database name when setting the variables of odoo docker?
Is the variable
NAME
used to define the database name?The text was updated successfully, but these errors were encountered: