Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Nebo15/alpine-postgre
PostgreSQL Docker Images based on Alpine Linux and with the same API as official repo has.
https://github.com/Nebo15/alpine-postgre
alpine container docker postgre postgresql
Last synced: 3 months ago
JSON representation
PostgreSQL Docker Images based on Alpine Linux and with the same API as official repo has.
- Host: GitHub
- URL: https://github.com/Nebo15/alpine-postgre
- Owner: Nebo15
- License: mit
- Created: 2016-09-10T10:42:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-23T19:18:18.000Z (over 7 years ago)
- Last Synced: 2024-05-03T06:38:50.079Z (6 months ago)
- Topics: alpine, container, docker, postgre, postgresql
- Language: Shell
- Size: 381 KB
- Stars: 2
- Watchers: 14
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alpine-postgre
PostgreSQL Docker container based on Alpine Linux and with the same API as [official container has](https://hub.docker.com/_/postgres/).
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.