Skip to content

Dockerfile for PostgreSQL 9.3 with configurable login/database. Stores data in /data volume.

License

Notifications You must be signed in to change notification settings

kamui/docker-postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-postgresql

PostgreSQL for Docker. The data directory is set to /data so you can use a data only volume.

$ docker run -name postgresql-data -v /data ubuntu /bin/bash
$ docker run -d -p 5432:5432 -volumes-from postgresql-data -e POSTGRESQL_USER=docker -e POSTGRESQL_PASS=docker -e POSTGRESQL_DB=docker kamui/postgresql
da809981545f
$ psql -h localhost -U docker docker
Password for user docker:
psql
Type "help" for help.

docker=#

(Example assumes PostgreSQL client is installed on Docker host.)

About

Dockerfile for PostgreSQL 9.3 with configurable login/database. Stores data in /data volume.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages