From 3d18d92ff2546405335cb6a9f96b42c8af24690b Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Fri, 21 Jan 2022 14:24:24 +0100 Subject: [PATCH 1/3] Add POSTGIS_VERSION variable --- .env.example | 1 + 1 file changed, 1 insertion(+) diff --git a/.env.example b/.env.example index 26df8c5..d09ac3b 100644 --- a/.env.example +++ b/.env.example @@ -448,6 +448,7 @@ POSTGRES_ENTRYPOINT_INITDB=./postgres/docker-entrypoint-initdb.d ### POSTGRES-POSTGIS ############################################## +POSTGIS_VERSION=latest POSTGIS_INSTALL_PGSQL_HTTP_FOR_POSTGIS13=false ### SQS ############################################## From 2efec41e5534827677ab20ae835bde55ec22a310 Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Fri, 21 Jan 2022 14:25:55 +0100 Subject: [PATCH 2/3] Add POSTGIS_VERSION argument --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0969ea8..2314b2a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -625,7 +625,7 @@ services: build: context: ./postgres-postgis args: - - POSTGRES_VERSION=${POSTGRES_VERSION} + - POSTGIS_VERSION=${POSTGIS_VERSION} - INSTALL_PGSQL_HTTP_FOR_POSTGIS13=${POSTGIS_INSTALL_PGSQL_HTTP_FOR_POSTGIS13} volumes: - ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data From 1fa196de84060eaf68caf6fe93183e96c2e28c36 Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Fri, 21 Jan 2022 14:26:39 +0100 Subject: [PATCH 3/3] Use POSTGIS_VERSION argument --- postgres-postgis/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres-postgis/Dockerfile b/postgres-postgis/Dockerfile index a25ea78..90f2611 100644 --- a/postgres-postgis/Dockerfile +++ b/postgres-postgis/Dockerfile @@ -1,5 +1,5 @@ -ARG POSTGRES_VERSION=latest -FROM postgis/postgis:${POSTGRES_VERSION} +ARG POSTGIS_VERSION=latest +FROM postgis/postgis:${POSTGIS_VERSION} LABEL maintainer="Mahmoud Zalt "