Nebo15/alpine-postgre

Name: alpine-postgre

Owner: Nebo #15

Description: PostgreSQL Docker Images based on Alpine Linux and with the same API as official repo has.

Created: 2016-09-10 10:42:06.0

Updated: 2017-08-06 15:05:58.0

Pushed: 2017-07-23 19:18:18.0

Homepage: null

Size: 390

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

alpine-postgre

PostgreSQL Docker container based on Alpine Linux and with the same API as official container has.

Whats different?

  1. Added POSTGRES_LOG_STATEMENTS environment variable that helps with settings custom verbosity for statements log.
  2. Added REPLICATOR_USER (default: phhoard) and REPLICATOR_PASSWORD environment variables that will allow replication connections to a running container. (By default PostgreSQL all statement does not include replication in pg_hba.conf.)
  3. Improved entrypoint script to support backups from restored PostgeSQL data directory.
How to restore from backup?

Place your restored PGDATA to ${PGDATA}/../restored_data (by default: var/lib/postgresql/restored_data) and restart the container. During restart it will:

  1. Move current PGDATA to ${PGDATA}/../corrupted_data. (You will need to remove it manually later.)
  2. Move files from restored_data to $PGDATA.
  3. Remove restored_data directory.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.