Last active
August 10, 2020 19:22
-
-
Save germanotm/ae14aec405567fa4076fef90b947b7b1 to your computer and use it in GitHub Desktop.
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
# install only client | |
sudo apt-get install postgresql-client | |
# run docker | |
docker rm postgres13.0; docker run --name postgres13.0 -p 5432:5432 --network=dev-network -e "POSTGRES_PASSWORD=postgres" -v "/home/germano/.docker/postgres_data/13.0:/var/lib/postgresql/data" postgres:13-alpine | |
# connect | |
psql postgresql://postgres:postgres@127.0.0.1:5432/postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment