https://github.com/seralaci/postgres-docker-compose
PostgreSQL and pgAdmin by Docker Compose
https://github.com/seralaci/postgres-docker-compose
docker docker-compose pgadmin pgadmin-docker pgadmin4 postgres postgresql
Last synced: 6 months ago
JSON representation
PostgreSQL and pgAdmin by Docker Compose
- Host: GitHub
- URL: https://github.com/seralaci/postgres-docker-compose
- Owner: seralaci
- License: mit
- Created: 2023-06-18T09:51:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-18T10:14:11.000Z (over 2 years ago)
- Last Synced: 2025-01-12T20:11:23.359Z (about 1 year ago)
- Topics: docker, docker-compose, pgadmin, pgadmin-docker, pgadmin4, postgres, postgresql
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PostgreSQL and pgAdmin 4 by Docker Compose
## Requirements:
* docker >= 17.12.0+
* docker-compose
## Quick Start
* Clone or download this repository
* Go inside of directory, `cd postgres-docker-compose`
* Run this command `docker-compose up -d`
## Environments
This Compose file contains the following environment variables:
* `POSTGRES_USER` the default value is **postgres**
* `POSTGRES_PASSWORD` the default value is **setyourpassword**
* `PGADMIN_PORT` the default value is **5050**
* `PGADMIN_DEFAULT_EMAIL` the default value is **pgadmin4@pgadmin.org**
* `PGADMIN_DEFAULT_PASSWORD` the default value is **admin**
## Access to postgres:
* `localhost:5432`
* **Username:** postgres
* **Password:** setyourpassword
## Access to PgAdmin:
* **URL:** [http://localhost:5050](http://localhost:5050)
* **Username:** pgadmin@pgadmin.org
* **Password:** admin
## 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 `setyourpassword`

## Logging
There are no easy way to configure pgadmin log verbosity and it can be overwhelming at times. It is possible to disable pgadmin logging on the container level.
Add the following to `pgadmin` service in the `docker-compose.yml`:
```
logging:
driver: "none"
```
## Are you new to PostgreSQL?
[Learn PostgreSQL Tutorial - Full Course for Beginners](https://www.youtube.com/watch?v=qw--VYLpxG4)