Tweak these environment variables to easily connect to a postgres server:
HOST: The address of the postgres server. If you used a postgres container, set to the name of the container. Defaults to db.PORT: The port the postgres server is listening to. Defaults to 5432.USER: The postgres role with which Odoo will connect. If you used a postgres container, set to the same value as POSTGRES_USER. Defaults to odoo.PASSWORD: The password of the postgres role with which Odoo will connect. If you used a postgres container, set to the same value as POSTGRES_PASSWORD. Defaults to odoo.NAME: The name of database this is optionalBASE_MODULE: set true odoo will install base module optionalversion: '3.1'
services:
web:
image: yoghiyb/odoo16-multiarch
ports:
- "8069:8069"
environment:
- HOST=host.docker.internal
- USER=myuser
- PASSWORD=mypass
- NAME=odoo16
- BASE_MODULE=true
Content type
Image
Digest
sha256:11bf68bde…
Size
553.8 MB
Last updated
over 3 years ago
docker pull yoghiyb/odoo16-multiarch