Docker Container for PostgreSQL Server and Data
1.3K
A docker container featuring PostgreSQL 9.3. It uses Phusion's Baseimage as base image.
The configuration files postgresql.conf and pg_hba.conf are copied to the data directory on initialization.
None. Use the data container thstangenberg/postgresql:data.
5432 - The PostgreSQL default port.DB: The space seperated database name(s) to create on initialization. Default: dockerUSER: The username. Default: dockerPASS: The password for USER. Default: dockerNormal start with exposed network port
docker run -d -p 5432:5432 thstangenberg/postgresql:9.3
Start with linked data volume from the data image
docker run -d --name="pg-data" thstangenberg/postgresql:data
docker run -d --volumes-from "pg-data" thstangenberg/postgresql:9.3
Start with linked data volume from the data image and provided variables
docker run -d --name="pg-data" thstangenberg/postgresql:data
docker run -d -p 5432:5432 --volumes-from "pg-data" -e DB="myDB1 myDB2 myDB3" -e USER="super" -e PASS="confidential" thstangenberg/postgresql:9.3
see LICENSE.txt
Content type
Image
Digest
sha256:66d0b8002…
Size
156.5 MB
Last updated
almost 11 years ago
docker pull thstangenberg/postgresql