PG_USER=<postgres username:-postgres>
PG_PASS=<postgres password:-postgres>
PG_DB=<postgres database:-postgres>
AUTH_METHOD=<auth method for db:-md5>
| Reference :- https://www.postgresql.org/docs/9.1/auth-methods.html
PGDATA=<PG congiguration location:-/usr/local/postgresql/data>
Run docker command -
docker run nikush001/postgres:latest
Please add all script files in the local directory and bind that volume with docker /docker-entrypoint-initdb.d/ volume.
docker run -v local_dir:/docker-entrypoint-initdb.d/
docker run -e PG_USER=<user> -e PG_PASS=<pwd> -e PG_DB=<db> -p 5433:5432 -v local_dir:/docker-entrypoint-initdb.d/ <image>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate. Feel free to reach out to [email protected]
Content type
Image
Digest
Size
14.8 MB
Last updated
over 5 years ago
docker pull nikush001/postgres