Skip to content

Instantly share code, notes, and snippets.

@farewelldave
farewelldave / postgres-docker-config.sh
Last active March 27, 2017 22:45 — forked from averagehuman/postgres-docker-config.sh
Run postgres on docker host, connect from docker containers
#!/bin/bash
################################################################################
# Rather than run postgres in its own container, we want to run it on
# the (Ubuntu) host and allow:
#
# + peer connections on the host
# + local md5 connections from any docker container
#
# THIS IS COPY/PASTED FROM COMMAND LINE INPUT AND IS UNTESTED AS A SINGLE SCRIPT
################################################################################