Last active
October 1, 2021 02:05
-
-
Save jkeam/8b01553d5f33f271e5b8053ea476f5b7 to your computer and use it in GitHub Desktop.
Start Postgres DB in Docker
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 | |
docker run --rm --name postgres -p 5432:5432 -v /tmp/app/db:/var/lib/postgresql/data -e POSTGRES_PASSWORD=root -e POSTGRES_USER=postgres -e PGDATA=/var/lib/postgresql/data/pgdata postgres:bullseye |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment