Created
February 11, 2019 19:29
-
-
Save nicbet/0074f25882a3ce37606165fc2824300c to your computer and use it in GitHub Desktop.
Development Database (postgresql) with Docker
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
#!/bin/bash | |
docker run --name $@ \ | |
-d \ | |
-e POSTGRES_PASSWORD=postgres \ | |
-e POSTGRES_USER=postgres \ | |
-v $(pwd)/database:/var/lib/postgresql/data \ | |
-p 5432:5432 \ | |
postgres:11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment