Skip to content

Instantly share code, notes, and snippets.

@rhogeranacleto
Last active November 6, 2018 16:48
Show Gist options
  • Save rhogeranacleto/9c3a115f0e326c6a6c69c0f33b619737 to your computer and use it in GitHub Desktop.
Save rhogeranacleto/9c3a115f0e326c6a6c69c0f33b619737 to your computer and use it in GitHub Desktop.
sudo docker volume create pg-volume
sudo docker run --name postgres -e POSTGRES_PASSWORD=node@1234 -e POSTGRES_USER=node -v pg-volume:/var/lib/postgresql/data -p 5432:5432 -d postgres:9.4.19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment