From f6a9e738ed6dba1c44fa6a872fbe57669cd68a0a Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 29 Jan 2019 10:40:17 +0100 Subject: [PATCH] Add 'POSTGRES_DB=postgres' to the custom example To fix https://github.com/odoo/odoo/issues/27447. Sort the environtment variables as well. --- odoo/content.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/odoo/content.md b/odoo/content.md index d0885f71c..22a8a6ee7 100644 --- a/odoo/content.md +++ b/odoo/content.md @@ -95,9 +95,9 @@ services: db: image: postgres:10 environment: + - POSTGRES_DB=postgres - POSTGRES_PASSWORD=odoo - POSTGRES_USER=odoo - - POSTGRES_DB=postgres ``` If the default postgres credentials does not suit you, tweak the environment variables: @@ -118,9 +118,9 @@ services: mydb: image: postgres:10 environment: - - POSTGRES_USER=odoo - - POSTGRES_PASSWORD=myodoo - POSTGRES_DB=postgres + - POSTGRES_PASSWORD=myodoo + - POSTGRES_USER=odoo ``` Here's a last example showing you how to mount custom addons, how to use a custom configuration file and how to use volumes for the Odoo and postgres data dir: @@ -141,6 +141,7 @@ services: db: image: postgres:10 environment: + - POSTGRES_DB=postgres - POSTGRES_PASSWORD=odoo - POSTGRES_USER=odoo - PGDATA=/var/lib/postgresql/data/pgdata