Skip to content

Instantly share code, notes, and snippets.

@diegomengarda
Last active October 9, 2017 17:01
Show Gist options
  • Save diegomengarda/6217f1916900629e5f14048220d5cfc0 to your computer and use it in GitHub Desktop.
Save diegomengarda/6217f1916900629e5f14048220d5cfc0 to your computer and use it in GitHub Desktop.
Docker - Postgres 9.4
docker pull postgres:9.4
apt-get -qq update
apt-get clean && apt-get update
apt-get install -y locales && apt-get install -y build-essential curl software-properties-common
locale-gen en_US en_US.UTF-8 pt_BR.UTF-8
nano /etc/profile
export PGPORT=5432
source /etc/profile
pg_createcluster 9.4 main --start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment