Public Repository

Last pushed: 2 years ago
Short Description
Postgres 9.4 + PostGIS 2.1. Work in progress
Full Description

Based almost entirely on the official postgres image with some of the changes detailed on http://www.rassoc.com/gregr/weblog/2013/02/16/zero-to-postgresql-streaming-replication-in-10-mins/ to enable streaming replication.

This is a work in progress and I provide no support for getting it working.

Master database

docker run -p 5001:5432 -v /var/lib/postgresql/data \
-e POSTGRES_PASSWORD=mypass -e REPLICATION_PASSWORD=repl mcartmell/postgis

Slave database

docker run -p 5002:5432 -v /var/lib/postgresql/slave_data \
-e POSTGRES_PASSWORD=mypass -e REPLICATION_HOST=172.17.42.1 \
-e REPLICATION_PORT=5001 -e REPLICATION_PASSWORD=repl \
-e POSTGRES_ROLE=slave mcartmell/postgis
Docker Pull Command
Owner
mcartmell