$ git clone https://github.com/RicardoVeronica/docker-hub-postgresql-pgadmin.git
Go to, docker-compose.yml and put your own data in services For db:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD For pgadmin:
- PGADMIN_DEFAULT_EMAIL
- PGADMIN_DEFAULT_PASSWORD
$ docker-compose up -d
$ docker-compose exec db psql -U your_user your_db
0.0.0.0:16543
\i code/code/your.sql