From 881247cf7007e475ccf70d343df4da5efe6403bb Mon Sep 17 00:00:00 2001 From: Marko Bocevski Date: Tue, 1 Feb 2022 12:19:48 +0100 Subject: [PATCH] Switch postgres image to use the official postgis image --- compose/2.8/postgresql/Dockerfile | 2 +- .../docker-entrypoint-initdb.d/20_postgis_permissions.sql | 1 - compose/2.9/postgresql/Dockerfile | 2 +- .../docker-entrypoint-initdb.d/20_postgis_permissions.sql | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/compose/2.8/postgresql/Dockerfile b/compose/2.8/postgresql/Dockerfile index d2dee7f..e5fcbb7 100644 --- a/compose/2.8/postgresql/Dockerfile +++ b/compose/2.8/postgresql/Dockerfile @@ -1,4 +1,4 @@ -FROM mdillon/postgis:11 +FROM postgis/postgis:14-3.2-alpine # Allow connections; we don't map out any ports so only linked docker containers can connect RUN echo "host all all 0.0.0.0/0 md5" >> /var/lib/postgresql/data/pg_hba.conf diff --git a/compose/2.8/postgresql/docker-entrypoint-initdb.d/20_postgis_permissions.sql b/compose/2.8/postgresql/docker-entrypoint-initdb.d/20_postgis_permissions.sql index 0eb2f85..8b5348e 100644 --- a/compose/2.8/postgresql/docker-entrypoint-initdb.d/20_postgis_permissions.sql +++ b/compose/2.8/postgresql/docker-entrypoint-initdb.d/20_postgis_permissions.sql @@ -1,3 +1,2 @@ -CREATE EXTENSION POSTGIS; ALTER VIEW geometry_columns OWNER TO ckan; ALTER TABLE spatial_ref_sys OWNER TO ckan; diff --git a/compose/2.9/postgresql/Dockerfile b/compose/2.9/postgresql/Dockerfile index d2dee7f..e5fcbb7 100644 --- a/compose/2.9/postgresql/Dockerfile +++ b/compose/2.9/postgresql/Dockerfile @@ -1,4 +1,4 @@ -FROM mdillon/postgis:11 +FROM postgis/postgis:14-3.2-alpine # Allow connections; we don't map out any ports so only linked docker containers can connect RUN echo "host all all 0.0.0.0/0 md5" >> /var/lib/postgresql/data/pg_hba.conf diff --git a/compose/2.9/postgresql/docker-entrypoint-initdb.d/20_postgis_permissions.sql b/compose/2.9/postgresql/docker-entrypoint-initdb.d/20_postgis_permissions.sql index 0eb2f85..8b5348e 100644 --- a/compose/2.9/postgresql/docker-entrypoint-initdb.d/20_postgis_permissions.sql +++ b/compose/2.9/postgresql/docker-entrypoint-initdb.d/20_postgis_permissions.sql @@ -1,3 +1,2 @@ -CREATE EXTENSION POSTGIS; ALTER VIEW geometry_columns OWNER TO ckan; ALTER TABLE spatial_ref_sys OWNER TO ckan;