Sign inSign up

diepho/odoo

By diepho

•Updated about 10 years ago

ebizhub.vn odoo web apps

Image
1

355

diepho/odoo repository overview

This is the Docker official image for odoo, replacing the debian:jessie with turnkeylinux/core-14.1.

see these images for details: https://hub.docker.com/_/odoo/⁠ https://hub.docker.com/r/turnkeylinux/core-14.1/⁠

Start a PostgreSQL server $ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db diepho/postgres:v1.1 Start an Odoo instance $ docker run -p 8069:8069 --name odoo --link db:db -t diepho/odoo:v1.1 The alias of the container running Postgres must be db for Odoo to be able to connect to the Postgres server.

Stop and restart an Odoo instance $ docker stop odoo $ docker start -a odoo Stop and restart a PostgreSQL server When a PostgreSQL server is restarted, the Odoo instances linked to that server must be restarted as well because the server address has changed and the link is thus broken.

Restarting a PostgreSQL server does not affect the created databases.

Run Odoo with a custom configuration The default configuration file for the server (located at /etc/odoo/openerp-server.conf) can be overriden at startup using volumes. Suppose you have a custom configuration at /path/to/config/openerp-server.conf, then

$ docker run -v /path/to/config:/etc/odoo -p 8069:8069 --name odoo --link db:db -t odoo Please use this configuration template to write your custom configuration as we already set some arguments for running Odoo inside a Docker container.

You can also directly specify Odoo arguments inline. Those arguments must be given after the keyword -- in the command-line, as follows

$ docker run -p 8069:8069 --name odoo --link db:db -t odoo -- --db-filter=odoo_db_.* Mount custom addons You can mount your own Odoo addons within the Odoo container, at /mnt/extra-addons

$ docker run -v /path/to/addons:/mnt/extra-addons -p 8069:8069 --name odoo --link db:db -t odoo Run multiple Odoo instances $ docker run -p 8070:8069 --name odoo2 --link db:db -t odoo $ docker run -p 8071:8069 --name odoo3 --link db:db -t odoo Please note that for plain use of mails and reports functionalities, when the host and container ports differ (e.g. 8070 and 8069), one has to set, in Odoo, Settings->Parameters->System Parameters (requires technical features), web.base.url to the container port (e.g. 127.0.0.1:8069).

Tag summary

Content type

Image

Digest

Size

417.3 MB

Last updated

about 10 years ago

docker pull diepho/odoo:9.0cv2.0