PostgreSQL Docker container based on Alpine Linux and with the same API as official container has.
Whats different?
- Added
POSTGRES_LOG_STATEMENTS
environment variable that helps with settings custom verbosity for statements log. - Added
REPLICATOR_USER
(default:phhoard
) andREPLICATOR_PASSWORD
environment variables that will allow replication connections to a running container. (By default PostgreSQLall
statement does not includereplication
inpg_hba.conf
.) - Improved entrypoint script to support backups from restored PostgeSQL data directory.
Place your restored PGDATA
to ${PGDATA}/../restored_data
(by default: var/lib/postgresql/restored_data
) and restart the container. During restart it will:
- Move current PGDATA to
${PGDATA}/../corrupted_data
. (You will need to remove it manually later.) - Move files from
restored_data
to$PGDATA
. - Remove
restored_data
directory.