Last active
October 22, 2023 07:15
-
-
Save Kazhuu/dec7eaf2f495dfa0bdb47107cc7acba6 to your computer and use it in GitHub Desktop.
Run pgadmin4 form docker connecting to host machine database
This file contains hidden or 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
# Create workdirectory first where you run the pdamin. Then give it proper permissions | |
``` | |
sudo chown -R 5050:5050 . | |
``` | |
Then run pgadmin with | |
``` | |
docker pull dpage/pgadmin4 | |
run --network=host \ | |
-e '[email protected]' \ | |
-e 'PGADMIN_DEFAULT_PASSWORD=postgres' \ | |
dpage/pgadmin4 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment