https://github.com/shamimgeek/docker-compose-postgres
Postgresql with pgadmin4 and docker-compose and practice sql
https://github.com/shamimgeek/docker-compose-postgres
docker docker-compose pgadmin-docker pgadmin4 postgresql sql
Last synced: 3 months ago
JSON representation
Postgresql with pgadmin4 and docker-compose and practice sql
- Host: GitHub
- URL: https://github.com/shamimgeek/docker-compose-postgres
- Owner: shamimgeek
- License: apache-2.0
- Created: 2020-08-16T21:22:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-25T19:55:53.000Z (over 5 years ago)
- Last Synced: 2023-02-28T22:32:18.091Z (about 3 years ago)
- Topics: docker, docker-compose, pgadmin-docker, pgadmin4, postgresql, sql
- Language: TSQL
- Homepage:
- Size: 763 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-compose-postgres-pgadmin4
## Requirements:
- docker
- docker-compose
## Quick Start
- Clone this repository
- Go to directory, `cd docker-compose-postgres`
- Run this command `docker-compose -f docker-compose-postgres-pgadmin4.yml up -d`
## Environment Variables
- `POSTGRES_USER` the default value is **postgres**
- `POSTGRES_PASSWORD` the default value is **passw0rd**
- `PGADMIN_PORT` the default value is **8080**
- `PGADMIN_DEFAULT_EMAIL` the default value is **shamim.rhce@gmail.com**
- `PGADMIN_DEFAULT_PASSWORD` the default value is **passw0rd**
## Access to postgres:
- `localhost:5432`
- **Username:** postgres (as a default)
- **Password:** passw0rd (as a default)
## Access to postgres using terminal:
```
docker exec -it postgres psql -U postgres
```
for more postgresql commands check [here](./postgresql-commands.md)
## Access to PgAdmin:
- **URL:** `http://localhost:8080`
- **Username:** shamim.rhce@gmail.com (as a default)
- **Password:** passw0rd (as a default)

## Add a new server in PgAdmin:
- **Host name/address** `postgres`
- **Port** `5432`
- **Username** as `POSTGRES_USER`, by default: `postgres`
- **Password** as `POSTGRES_PASSWORD`, by default `passw0rd`


