Switch postgres image to use the official postgis image

This commit is contained in:
Marko Bocevski 2022-02-01 12:19:48 +01:00
parent 786a643db4
commit 881247cf70
No known key found for this signature in database
GPG Key ID: C5B52A3811855AB3
4 changed files with 2 additions and 4 deletions

View File

@ -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 # 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 RUN echo "host all all 0.0.0.0/0 md5" >> /var/lib/postgresql/data/pg_hba.conf

View File

@ -1,3 +1,2 @@
CREATE EXTENSION POSTGIS;
ALTER VIEW geometry_columns OWNER TO ckan; ALTER VIEW geometry_columns OWNER TO ckan;
ALTER TABLE spatial_ref_sys OWNER TO ckan; ALTER TABLE spatial_ref_sys OWNER TO ckan;

View File

@ -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 # 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 RUN echo "host all all 0.0.0.0/0 md5" >> /var/lib/postgresql/data/pg_hba.conf

View File

@ -1,3 +1,2 @@
CREATE EXTENSION POSTGIS;
ALTER VIEW geometry_columns OWNER TO ckan; ALTER VIEW geometry_columns OWNER TO ckan;
ALTER TABLE spatial_ref_sys OWNER TO ckan; ALTER TABLE spatial_ref_sys OWNER TO ckan;