From cbee32a8e93a54ca2417f6feb02accd1f98c718a Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Tue, 29 Sep 2020 22:05:54 +0200 Subject: [PATCH 1/2] Upgrade postgres dev to prod version (v12) --- HISTORY.rst | 2 ++ docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 5b348a8..8f11101 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -25,4 +25,6 @@ latest (unreleased) **Build** +* BSMNT-138 Upgrade postgres dev to prod version (v12) + **Documentation** diff --git a/docker-compose.yml b/docker-compose.yml index 10333cd..6718e9c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,7 +41,7 @@ services: MARABUNTA_ALLOW_SERIE: 'True' # should not be set in production db: - image: camptocamp/postgres:9.5 + image: camptocamp/postgres:12-postgis3 command: -c shared_buffers=256MB -c maintenance_work_mem=256MB -c wal_buffers=8MB -c effective_cache_size=1024MB ports: - 5432 From 0c3ebc1d66fd8f9a40294a4b97393b70137d41e4 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Wed, 30 Sep 2020 13:03:16 +0200 Subject: [PATCH 2/2] Add pg initdb args --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 6718e9c..21c692a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,6 +46,7 @@ services: ports: - 5432 environment: + POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=C --lc-ctype=C POSTGRES_USER: odoo POSTGRES_PASSWORD: odoo volumes: