Public | Automated Build

Last pushed: 3 years ago
Short Description
Centos 7 / PostgreSQL 9.4.1
Full Description

#Centos 7 / PostgreSQL 9.4.1 / Persistent data volume

pg_hba.conf and postgresql.conf are open for training purposes. Please tweak those configs to make it more secure and production ready.

/var/lib/pgsql - on host has the actual data [This image/container comes with persistent data storage]

To start postgresql container run:

docker run -d --name postgres-dev-1 -h postgres-dev-1 -p 5432:5432 -v /var/lib/pgsql/:/var/lib/pgsql goriparthi/centos7-postgres

To connect to postgresql run (Example assumes PostgreSQL client is installed on Docker host) :

psql -U postgres -h $(docker inspect --format {{.NetworkSettings.IPAddress}} postgres-dev-1)

Password : postgres

Deploy code and tweak according to your environment.

Docker Pull Command
Source Repository