Sign inSign up

tbeadle/postgres

By tbeadle

Updated over 9 years ago

This is a fork of the official postgres images with the changes detailed below.

Image
0

2.2K

tbeadle/postgres repository overview

Source for the images: https://github.com/tbeadle/postgres

The following changes are incorporated:

  • The environment variables PGUSER, PGPASSWORD, and PGDATABASE are used instead of POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB. This is so that those environment variables can be defined in a docker-compose.yml file for the database container and then be inherited by other services that need to connect to the database so that they can just define PGHOST to the name of the database container and then use 'psql' without any connection parameters.
  • pg_hba.conf is changed to restrict external access to the database to 'samenet' instead of 'all'. This makes it so that other containers in the deployment can connect to it, but other external addresses are not able to.
  • pgcli is installed as an alternative to the built-in psql command.
  • The suggestions for postgresql.conf taken from Christophe Pettus's excellent talk at https://www.youtube.com/watch?v=jqmdujimzfq are included.

The images whose tags end with -barman are specialized to be used with barman for backing up the database. See https://github.com/tbeadle/postgres/tree/master/barman for information on how to use those images. They are especially useful when setting up a barman server using the tbeadle/barman image.

Tag summary

Content type

Image

Digest

Size

117.6 MB

Last updated

over 9 years ago

docker pull tbeadle/postgres:9.3-barman