Skip to content

Instantly share code, notes, and snippets.

@dupski
Created June 27, 2020 12:19
Show Gist options
  • Save dupski/9ebfaec18601d8e0c5730d1bc349a3e7 to your computer and use it in GitHub Desktop.
Save dupski/9ebfaec18601d8e0c5730d1bc349a3e7 to your computer and use it in GitHub Desktop.
Shell script to start PostgreSQL 11 in a docker container
#!/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