Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Postgres 9.3 container

<!-- mkdir -p /var/lib/pgsql/9.3 -->

Build the container and running it

docker build --rm -t mars/postgres:centos6 .

docker run --rm -t -i -p 5432:5432 --name postgres mars/postgres:centos6

To do:

  1. Make the postgres data directory a volume that is connected to the host of the container in order to separate data directory and actual instance
  2. Avoid the initialization of postgres if the data dir already exists
  3. Launch the container as:

     docker run --rm -t -i -p 5432:5432 -v /var/lib/pgsql/9.3/data:/var/lib/pgsql/9.3/data --name postgres mars/postgres:centos6
    

If developing on Mac remember to map the postgres port tp your localhost in Virtualbox

VBoxManage controlvm boot2docker-vm natpf1 ”postgres,tcp,127.0.0.1,5432,,5432"
Docker Pull Command
Owner
mgardellini
Source Repository