From 2df95dcbabf3aaf11a2377ecce361c35dd8ca05d Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Mon, 11 Aug 2025 11:58:02 +1000 Subject: [PATCH 1/3] No need to expose the postgres port There is no need to expose the port to the host, all container will be running in the same network, so they will have access to database port. --- compose.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 7ba4f2cc18..9293083ef9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -5,8 +5,6 @@ services: environment: POSTGRES_PASSWORD: f00d POSTGRES_USER: ofn - ports: - - 5432:5432 volumes: - 'postgres:/var/lib/postgresql/data' redis: From d596e692d810594d65026cbbcd1455ba9ba892c1 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Mon, 11 Aug 2025 12:05:58 +1000 Subject: [PATCH 2/3] Upgrade postgres to version 14 This is the version currently availablein Ubuntu 22 --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 9293083ef9..9275bacbc9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,6 @@ services: db: - image: postgres:10.19 + image: postgres:14 restart: always environment: POSTGRES_PASSWORD: f00d From d3a2c09f66c704b39efcb757984dee0f8ad1a444 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Mon, 18 Aug 2025 10:45:54 +1000 Subject: [PATCH 3/3] Upgrade to postgres 16 Postgres 16 is shipped with Ubuntu 24 which is the version we will be moving to in production --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 9275bacbc9..2c5a2e3935 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,6 @@ services: db: - image: postgres:14 + image: postgres:16 restart: always environment: POSTGRES_PASSWORD: f00d