Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-postgis

Docker configuration for PostGIS

Example usage

Dockerfile:

FROM mcenirm/postgis:9.4-2.1
COPY ./schema.sql /tmp/schema.sql
COPY ./initdb-load-schema.sh /docker-entrypoint-initdb.d/03-load-schema.sh

initdb-load-schema.sh:

#!/bin/sh
gosu postgres -U postgis -d postgis --single -E < /tmp/schema.sql

schema.sql:

CREATE TABLE testgeog(gid serial PRIMARY KEY, the_geog geography(POINT,4326) );
Docker Pull Command
Owner
mcenirm
Source Repository

Comments (0)