Sign inSign up

thstangenberg/postgresql

By thstangenberg

Updated almost 11 years ago

Docker Container for PostgreSQL Server and Data

Image
1

1.3K

thstangenberg/postgresql repository overview

PostgreSQL 9.3 Docker Container

A docker container featuring PostgreSQL 9.3. It uses Phusion's Baseimage as base image.

Features

  • PostgreSQL 9.3
  • UTF-8 Charset
  • Multiple database support
  • Easy backup/restore with a data container

PostgreSQL configuration

The configuration files postgresql.conf and pg_hba.conf are copied to the data directory on initialization.

Exposed volumes

None. Use the data container thstangenberg/postgresql:data.

Exposed ports

  1. 5432 - The PostgreSQL default port.

Environment Variables

  • DB: The space seperated database name(s) to create on initialization. Default: docker
  • USER: The username. Default: docker
  • PASS: The password for USER. Default: docker

Usage

Normal 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

License

see LICENSE.txt

Tag summary

Content type

Image

Digest

sha256:66d0b8002

Size

156.5 MB

Last updated

almost 11 years ago

docker pull thstangenberg/postgresql