Created
June 27, 2020 12:19
-
-
Save dupski/9ebfaec18601d8e0c5730d1bc349a3e7 to your computer and use it in GitHub Desktop.
Shell script to start PostgreSQL 11 in a docker container
This file contains 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 | |
echo "Starting PostgreSQL 11..." | |
docker run -it --rm \ | |
-e POSTGRES_PASSWORD=mysecretpassword \ | |
-v postgres11-data:/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