https://github.com/turgon37/docker-phppgadmin
Docker image running phppgadmin web application
https://github.com/turgon37/docker-phppgadmin
docker phppgadmin web-application
Last synced: about 1 year ago
JSON representation
Docker image running phppgadmin web application
- Host: GitHub
- URL: https://github.com/turgon37/docker-phppgadmin
- Owner: Turgon37
- License: mit
- Created: 2016-12-26T16:54:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T19:56:20.000Z (about 7 years ago)
- Last Synced: 2025-03-25T14:51:17.866Z (over 1 year ago)
- Topics: docker, phppgadmin, web-application
- Language: Shell
- Size: 32.2 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker phpPgAdmin
[](https://hub.docker.com/r/turgon37/phppgadmin/)
[](https://microbadger.com/images/turgon37/phppgadmin "Get your own image badge on microbadger.com")
[](https://microbadger.com/images/turgon37/phppgadmin "Get your own version badge on microbadger.com")
This images contains an instance of phppgadmin web application served by nginx on port 80
## Docker Informations
* This image expose the following port
| Port | Usage |
| -------------- | -------------------- |
| 80 | HTTP web application |
* This image takes theses environnements variables as parameters
| Environment | Usage |
| -------------------------- | ---------------------------------------------------------------|
| POSTGRES_HOST | The hostname of the PostGreSQL database server |
| POSTGRES_PORT | The port on which join the postgressql server (default to 5432)|
| POSTGRES_NAME | The name of the connection profil in phpPgAdmin profile |
| POSTGRES_HOSTS | Comma separated list of hostnames |
| POSTGRES_PORTS | Comma separated list of ports |
| POSTGRES_NAMES | The name of the connection profil in phpPgAdmin profile |
| POSTGRES_DEFAULTDB | The name of default database to show |
| PHPPGADMIN_LOGIN_SECURITY | If true enable restrictions on login and empty passwords |
| PHPPGADMIN_OWNED_ONLY | If true, filter databases owned by the logged user |
| PHPPGADMIN_SHOW_COMMENTS | If true, show comments fields |
| PHPPGADMIN_SHOW_ADVANCED | If true, display advanced objects like types, aggregations |
| PHPPGADMIN_SHOW_SYSTEM | If true, display systems objects |
| PHPPGADMIN_SHOW_OIDS | If true, show objects OIDs |
| PHPPGADMIN_USE_XHTML_STRICT| If true, send XHTML strict headers |
| PHPPGADMIN_THEME | Set here the name of the theme to use |
| PHPPGADMIN_PLUGINS | Set here the comma separated list of plugins name to enable |
## Installation
* Manual
```
git clone
docker build -t turgon37/phppgadmin .
```
* or Automatic
```
docker pull turgon37/phppgadmin
```
## Usage
* With docker cli
```
docker run -p 8000:80 -e "POSTGRES_HOST=127.0.0.1" -e "POSTGRES_PORT=5432" -e "POSTGRES_NAME=Intranet" turgon37/phppgadmin
```
* With docker-compose
```yaml
phppgadmin:
image: turgon37/phppgadmin
environment:
- POSTGRES_HOSTS=postgresql01.example.net,postgresql02.example.net
- POSTGRES_NAMES=PostgreSQL 01,PostgreSQL 02
ports:
- "127.0.0.1:8003:80/tcp"
```