

Password - Password used while creating the PSQL server with docker Įnter the credentials to save and manage PSQL via GUI. Now manage your postgres from the browser by launching. The postgres server is now running in the IP of your local machine in 5432.ĭownload the pgAdmin-4 browser version from docker-hub using the following command.ĭocker run -rm -p 5050:5050 thajeztah/pgadmin4

The PostgresQL is ready to connect and use. Verify a new container created and running at 0.0.0.0:5432 with the below command. somePassword with a password to authenticate and connect to the postgres (in application with connection string as well as the PG-admin viewer).Optional - postgresql-container with a preferable container name if necessary.Run the below command in linux or windows or mac machine from the terminal or command-prompt to pull PSQL from docker-hub.ĭocker run -name postgresql-container -p 5432:5432 -e POSTGRES_PASSWORD=somePassword -d postgres PgAdmin4 browser version to access Postgres server from GUI.Postgres container accessible through CLI.Postgres server running as a docker-container (which can be accessed by CLI, GUI or other application for development).NOTE: This is to make the development process easy and however follow the conventional method of installing PSQL individually for production environment.Īfter following the instructions below, you will get the following installed in your machine: It's now easy to kick-start development of postgres based applications in a few seconds. Now skip all complex steps in installing and configuring PSQL to get started with local development and GUI to manage the DB. Here is a simple way to get all at one place easily installed and configured within seconds with the help of docker. Installing, running and managing postgres in local-machine for development is not difficult anymore.
