Last active
October 29, 2022 20:57
-
-
Save najamsk/0b56371d0b9fb58a310a0fee6afbe5df to your computer and use it in GitHub Desktop.
running persistant postgresql db and pgadmin with 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
docker run -p 5432:5432 -d \ | |
-e POSTGRES_PASSWORD=postgres \ | |
-e POSTGRES_USER=postgres \ | |
-e POSTGRES_DB=stripe-example \ | |
-v ~/dockerVols/pg:/var/lib/postgresql/data \ | |
postgres |
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
docker run -p 5555:80 \ | |
-e 'PGADMIN_DEFAULT_EMAIL=najamsk@gmail.com' \ | |
-e 'PGADMIN_DEFAULT_PASSWORD=password' \ | |
-d dpage/pgadmin4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment