Last active
April 3, 2021 09:06
-
-
Save finesse-fingers/2672f83aef975ec0a1e69be0ab43e4bb 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
docker run -d \ | |
-e POSTGRES_PASSWORD=SuperSecret \ | |
-v ~/postgresql/13/data:/var/lib/postgresql/data \ # windows: -v d:/postgresql/13/data:/var/lib/postgresql/data | |
-p 5432:5432 \ | |
--name postgres \ | |
postgres:13 | |
docker run -p 5050:80 -d \ | |
-e 'PGADMIN_DEFAULT_EMAIL=admin@domain.com' \ | |
-e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret' \ | |
--name pgadmin4 \ | |
dpage/pgadmin4 | |
# route to localhost:5050 > create server > use 'host.docker.internal' as host | |
# https://stackoverflow.com/questions/25540711/docker-postgres-pgadmin-local-connection/56617524#56617524 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment