Public | Automated Build

Last pushed: a year ago
Short Description
Derived from official image with some modifications.
Full Description

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.

Differences and Improvements

This repository is updated with an improved entrypoint, which is written in python.

Differences from the official Odoo Docker Repository

  • Linked postgres containers now use the token postgres instead of db. Example: --link <postgres-container>:postgres.
  • PGDATABASE is set if POSTGRES_DB is defined in the linked postgres container.
  • Container will not start if any of the 4 linked postgres variables are not defined. They are:


Multiple command-line options would now determine how the odoo service is started.

Command serve

serve will start the server instead of the default, which was no arguments.

  • --autoset will automatically attempt to set the arguments of the process from the postgres environment variables defined from the linked container. These arguments will be set:
    • --db_host
    • --db_port
    • --db_user
    • --db_password
    • --database
    • --db-filter
  • --pg-chown will automatically change the owner of the linked database PGDATABASE to PGUSER.
  • --pg-nosuperuser will automatically drop superuser status of PGUSER.
  • --single will attempt to start the service in single db mode. That is, it implies --autoset, --pg-chown and --pg-nosuperuser.
  • Any arguments after -- will be passed to instead.
Docker Pull Command
Source Repository