https://github.com/lvthillo/docker-php-postgres
Basic PHP application to write data in PostgreSQL using environment variables
https://github.com/lvthillo/docker-php-postgres
docker docker-compose php postgres
Last synced: 11 months ago
JSON representation
Basic PHP application to write data in PostgreSQL using environment variables
- Host: GitHub
- URL: https://github.com/lvthillo/docker-php-postgres
- Owner: lvthillo
- Created: 2017-08-09T16:27:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T14:42:38.000Z (over 4 years ago)
- Last Synced: 2025-05-09T03:53:24.195Z (about 1 year ago)
- Topics: docker, docker-compose, php, postgres
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 8
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-php-postgres
```
$ docker-compose up -d
```
Access PHP app on http://localhost:80 and submit the form:

Visit http://localhost:5050
Default credentials are:
* username: pgadmin@mail.com
* password: mypassword
Add a connection:

Check the data:

The docker-compose.yaml is very flexible. By editing the enviroment variables inside the file you can define the following:
* POSTGRES_USER (default = dev)
* POSTGRES_PASSWORD (default = secret)
* POSTGRES_DB (default = db)
* DEFAULT_USER (default = pgadmin@mail.com)
* DEFAULT_PASSWORD (default = mypassword)