Public | Automated Build

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

docker-postgres-with-postgis

Docker configuration of Postgres with PostGIS enabled.

Example usage

Dockerfile:

FROM vovanbo/postgres-with-postgis
COPY ./schema.sql /tmp/schema.sql
COPY ./initdb-load-schema.sh /docker-entrypoint-initdb.d/03-load-schema.sh

initdb-load-schema.sh:

#!/bin/bash
gosu postgres postgres -U "$POSTGRES_USER" -d "$POSTGRES_DB" --single -E < /tmp/schema.sql

schema.sql:

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

Comments (0)