Resources to build custom Docker image for Odoo
docker-compose up
Additionally, the image will accept the following environment variable when run:
Variable name | Default | Description |
---|---|---|
HOST |
db | Database hostname |
PORT |
5432 | Database port |
USER |
odoo | Database username |
PASSWORD |
odoo | Database password |
DB_NAME |
odoo | Database name |
ADDONS |
List of addons to be pre-installed | |
INITIALIZER_CONFIG_FILE_PATH |
Odoo Intializer configuration path (only if Odoo Initializer addon is installed) | |
INITIALIZER_DATA_FILES_PATH |
Odoo Intializer data files path (only if Odoo Initializer addon is installed) |
/var/lib/odoo
: Odoo data files path
/mnt/extra-addons
: Additional addons path. Any addon provided in this folder will be automatically installed on first start of the image.
/etc/properties
: Path to provide alternative odoo.conf
file