Sign inSign up

nikush001/postgres

By nikush001

•Updated over 5 years ago

Image
0

720

nikush001/postgres repository overview

⁠postgres (docker container)

⁠Environment Variables -

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>

⁠Installation

Run docker command -

docker run nikush001/postgres:latest

⁠For Custom script

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 command with all the options -

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>

⁠Contributing

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]⁠

Tag summary

Content type

Image

Digest

Size

14.8 MB

Last updated

over 5 years ago

docker pull nikush001/postgres