Sign inSign up

labianchin/postgresql

By labianchin

Updated almost 11 years ago

Image
0

344

labianchin/postgresql repository overview

Postgresql server inside docker

Dockerfile with postgresql-9.3 server

How to

This repository provides a postgresql-9.3 server. It is important to suply a volume for postgresql data. If the data dir is empty, when starting the container, it will create the database cluster, a user and a database. Creating a database might take a while (~ 5 seconds).

When running check docker logs to see if the runit process (which starts postgresql database) has already started.

Build
docker build -t labianchin/postgresql .
Run
docker run -it -v /tmp/volumes/data:/data -v /tmp/volumes/log:/var/log --name thesql -p 5432:5432 -d labianchin/postgresql
PG_PASSWORD=docker psql -h localhost -U docker docker

TODO

  • Add to docker index
  • Improve documentation
  • Improve postgresql configuration (maybe not using many RUN commands)
  • Stress test, putting many data in the database

Credits

This repository was inspired in the following repositories:

Tag summary

Content type

Image

Digest

sha256:df3d3c19e

Size

141.1 MB

Last updated

almost 11 years ago

docker pull labianchin/postgresql