An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# docker-php-postgres
```
$ docker-compose up -d
```
Access PHP app on http://localhost:80 and submit the form:

screen shot 2017-08-17 at 19 28 23

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

Add a connection:

screen shot 2017-08-17 at 19 42 55

Check the data:

screen shot 2017-08-17 at 19 35 20

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)