Sign inSign up

duybq86/odoo

By duybq86

•Updated 2 days ago

Odoo Container

Image
Languages & frameworks
Web servers
0

10K+

duybq86/odoo repository overview

⁠About this Repo

This is the Git repo of the official Docker image for Odoo⁠. See the Hub page for the full readme on how to use the Docker image and for information regarding contributing and issues.

The full readme is generated over in docker-library/docs⁠, specifically in docker-library/docs/odoo⁠.

⁠How to use

pull the images with the following command for odoo [tag]:

docker pull duybq86/odoo:latest

And run with:

docker run -it duybq86/odoo:latest odoo --db_host [db_host]

To run with addons, you can use it like this:

docker run -it -v /path_to/some_addons:/erp/addons duybq86/odoo:latest --db_host [db_host]

⁠Config volumes and odoo config

The default configuration file for the server (located at /erp/conf/odoo.conf) can be overriden at startup using volumes.

The path /erp/data used as the mount point of the volume must match the odoo data_dir in the config file or as CLI parameters.

You can mount your own Odoo addons within the Odoo container, at /erp/addons

⁠Environment Variables

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.

  • DBNAME: The name of database which Odoo will connect.

  • SSLMODE: The mode of the postgres authen which Odoo will connect. ('disable', 'allow', 'prefer', 'require', 'verify-ca', 'verify-full')

  • SSLROOTCERT: default '/erp/.postgresql/root.crt'

  • SSLCERT: default '/erp/.postgresql/postgresql.crt'

  • SSLKEY: default '/erp/.postgresql/postgresql.key'

Tag summary

Content type

Image

Digest

sha256:c57ae88fb…

Size

790.8 MB

Last updated

10 months ago

docker pull duybq86/odoo