[IMP]Odoo Image configuration generation with optional host and port

This commit is contained in:
Fabien Bourgeois 2016-10-05 08:56:14 +02:00
parent c70cfa3823
commit 9c82fca298

View File

@ -26,8 +26,8 @@ echo "
; Configuration file auto-generated ; Configuration file auto-generated
addons_path = $ADDONS_PATH addons_path = $ADDONS_PATH
data_dir = /opt/odoo/data data_dir = /opt/odoo/data
db_host = postgres db_host = ${DB_HOST:=postgres}
db_port = 5432 db_port = ${DB_PORT:=5432}
db_user = $POSTGRES_USER db_user = $POSTGRES_USER
db_password = $POSTGRES_PASSWORD db_password = $POSTGRES_PASSWORD
db_maxconn = ${DB_MAXCONN:=10} db_maxconn = ${DB_MAXCONN:=10}