Skip to content

Basic PHP application to write data in PostgreSQL using environment variables

Notifications You must be signed in to change notification settings

lvthillo/docker-php-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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)

About

Basic PHP application to write data in PostgreSQL using environment variables

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published