This repository provides a Docker-based setup for running a PHP server environment.
Before you begin, ensure you have Docker and Docker Compose installed on your system:
Fork this repository to your own repo.
For this repo, all the code related to your project should be place under ./server folder.
Before running make sure to copy the content of .env-example in a new .env file.
For linux user
cp .env-example .env
For the very first use please make sure to build the docker image.
make build
Then just do
make services
One the server is up and running you can access the respective services as:
You can see your php pages at localhost:8000
Goto localhost:8080
Use the MYSQL_USER and MYSQL_PASSWORD from your .env file to login.
To close the server just do
make services.stop