docker-odoo/8.0/run.sh
Samus CTO 79b731f71d [IMP] use PG var envs to find the database
Set /var/lib/odoo as data_dir to keep filestore and addons located there
instead of /var/lib/odoo/.local/share/Odoo
2015-03-03 12:14:14 +01:00

11 lines
309 B
Bash
Executable File

#!/bin/bash
# set odoo database host, port, user and password
export PGHOST=$DB_PORT_5432_TCP_ADDR
export PGPORT=$DB_PORT_5432_TCP_PORT
export PGUSER=$DB_ENV_POSTGRES_USER
export PGPASSWORD=$DB_ENV_POSTGRES_PASSWORD
# start Odoo
exec gosu odoo /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf