docker build . -t postgres-9.6-local-dev
use brew or whatever for your distro/installation
docker run -d \
--restart=always \
-p 127.0.0.1:5432:5432 \
--tmpfs=/pgtmpfs -e PGDATA=/pgtmpfs \
--memory=2GB \
--name=postgres-local-dev \
simple/postgres-9.6-local-dev
docker restart postgres-local-dev