In Order to use Heroku from local PHP server, it must be ssl enabled. Dcoker file contains all needed configuration to spin off self signed ssl PHP server with Postgres extension.
- Install Docker
- Clone this repository on your local system
- Create an application in Heroku and enable Postgres SQL addon
- Copy
DataBase_URL
config variable from Settings section of your Heroku app - Update
$dbconn
variable in index.php file as by copied value. Make sure to extract host, port, dbname, user & password. - Run below command in terminal so that docker can install all the dependencies
docker-compose build
- Now start docker using below command
docker-compose up
After you run the command above you should be able to access http://localhost and https://localhost
- nezhar for Docker configurations of self signed SSL PHP Server