*** PROJECT UNDER DEVELOPMENT. NOT READY FOR PRODUCTION ***
A lightweight image for running Odoo from 6.0 to the moon! Strongly inspired by the doodba project and the official Odoo image.
- Installation from source code
- Detect missing modules at build time 1
- Automatically obtains and downloads modules dependencies
- Strong use of virtual environments
To configure Odoo, simply use environment variables with the prefix OCONF_{Param Name}
. Example for changing workers: OCONF_workers=4
.
** On Odoo 6.1 you can use environment variables with the prefix OWCONF_{Param Name}
(taking into account that the underscores will be replaced by dots).
Name | Description | Required |
---|---|---|
GITHUB_TOKEN | User token to use with git-aggregator | No |
Port | Odoo Version | Description |
---|---|---|
8069 | 6.1+ | Default port for HTTP and XML-RPC (web interface and API) |
8071 | 6.0+ | Optional port for XML-RPC (depends on configuration) |
8072 | 6.0+ | Port for long polling (real-time notifications, such as chat) |
8080 | 6.0 | [6.0 Only] Default port for HTTP and XML-RPC (web interface and API) |
services:
odoo:
build:
context: .
args:
ODOO_VERSION: 19.0
depends_on:
- db
ports:
- '8069:8069'
networks:
- frontend
- dbnet
environment:
ODOO_VERSION: 19.0
OCONF_log_level: debug
OCONF_db_filter: odoodb$
OCONF_db_user: odoo
OCONF_db_password: odoo
OCONF_db_host: odoo-db
OCONF_db_name: odoodb
OCONF_proxy_mode: false
hostname: odoo
db:
image: postgres:18.0-alpine
networks:
- dbnet
environment:
POSTGRES_DB: odoodb
POSTGRES_PASSWORD: odoo
POSTGRES_USER: odoo
POSTGRES_INITDB_ARGS: --locale=C --encoding=UTF8
hostname: odoo-db
networks:
frontend:
driver: bridge
driver_opts:
com.docker.network.bridge.host_binding_ipv4: 127.0.0.1
dbnet: