where do I set the database name?
where do I set the database name?
missing on this page https://hub.docker.com/_/odoo
From the compose section:
image: postgres:10
environment:
- POSTGRES_DB=postgres
Or try --db-name from command line.
From the compose section:
image: postgres:10 environment: - POSTGRES_DB=postgresOr try
--db-namefrom command line.
If they updated/added this, they should also update the environment variable section on dockerhub.
He was refering to postgres, Odoo does not offer a simple setting for that. For a possible solution/hint see: https://github.com/odoo/docker/issues/394
example
version: '3.1'
services:
web:
image: %%IMAGE%%:17.0
depends_on:
- mydb
ports:
- "8069:8069"
environment:
- HOST=mydb
- USER=odoo
- PASSWORD=myodoo
command: odoo -d customdb
mydb:
image: postgres:15
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=myodoo
- POSTGRES_USER=odoo
note that POSTGRES_DB must be set to postgres and then Odoo will create the database and populate if needed.
if you are connecting to an existing database then it may not be needed.