Skip to content

Instantly share code, notes, and snippets.

@ericwooley
Created August 19, 2017 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericwooley/91b8a7b2ca064f63cc3872dcb9aad995 to your computer and use it in GitHub Desktop.
Save ericwooley/91b8a7b2ca064f63cc3872dcb9aad995 to your computer and use it in GitHub Desktop.
NPM docker example
{
"name": "docker-db-example",
"scripts": {
"initDocker": "docker run --name snapshot-test-postgres -e POSTGRES_PASSWORD=developPassword -d postgres",
"destroyDocker": "docker stop snapshot-test-postgres; docker rm snapshot-test-postgres"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment