Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khezen/compose-postgres
Postgresql & pgadmin4 powered by compose
https://github.com/khezen/compose-postgres
docker docker-compose pgadmin pgadmin4 postgres postgresql
Last synced: 22 days ago
JSON representation
Postgresql & pgadmin4 powered by compose
- Host: GitHub
- URL: https://github.com/khezen/compose-postgres
- Owner: khezen
- License: mit
- Created: 2017-01-18T15:52:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-30T13:09:18.000Z (7 months ago)
- Last Synced: 2024-10-01T20:40:21.866Z (about 1 month ago)
- Topics: docker, docker-compose, pgadmin, pgadmin4, postgres, postgresql
- Size: 14.6 KB
- Stars: 1,255
- Watchers: 12
- Forks: 805
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - khezen/compose-postgres - Postgresql & pgadmin4 powered by compose (Others)
README
# Postgresql & PgAdmin powered by compose
## Requirements:
* docker >= 17.12.0+
* docker-compose## Quick Start
* Clone or download this repository
* Go inside of directory, `cd compose-postgres`
* 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 **changeme**
* `PGADMIN_PORT` the default value is **5050**
* `PGADMIN_DEFAULT_EMAIL` the default value is **[email protected]**
* `PGADMIN_DEFAULT_PASSWORD` the default value is **admin**## Access to postgres:
* `localhost:5432`
* **Username:** postgres (as a default)
* **Password:** changeme (as a default)## Access to PgAdmin:
* **URL:** `http://localhost:5050`
* **Username:** [email protected] (as a default)
* **Password:** admin (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 `changeme`## 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"
```[reference](https://github.com/khezen/compose-postgres/pull/23/files)