Last active
August 29, 2015 14:17
-
-
Save dpritchett/9b877f2b53fea3402d28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# take the current folder name as the app name | |
APPNAME=${PWD##*/} | |
# start a new persistent postgres container named appname_pg that listens on local port 5432 | |
docker run -p 5432:5432 --name ${APPNAME}_pg postgres |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# take current folder name (e.g. arai) as the app name | |
APPNAME=${PWD##*/} | |
docker start -a ${APPNAME}_pg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment