Created
November 30, 2023 14:35
-
-
Save AssafTzurEl/902d90b43eb50eddbff8d01da0d414fa to your computer and use it in GitHub Desktop.
Deploy Postgres + pgAdmin containers
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 network create pgnet | |
docker run -d --name postgres-container --network pgnet -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e POSTGRES_DB=mydb -v postgres-data:/var/lib/postgresql/data postgres:16.1 | |
docker run -d --name pgadmin-container --network pgnet -e PGADMIN_DEFAULT_EMAIL=admin@email.com -e PGADMIN_DEFAULT_PASSWORD=password -p 5050:80 dpage/pgadmin4:8.0 | |
REM You can now access pgAdmin at http://localhost:50505/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment