This project provides a basic structure for developing PHP applications using MySQL as the database, all running in Docker containers. It includes Make commands for easy project management.
To run this project, you need to have Docker and Docker Compose installed on your machine.
-
Clone this repository to your local machine:
git clone <repository_url>
-
Navigate to the project directory:
cd project_directory_name
-
Copy the
.env.example
file and rename it to.env
:cp .env.example .env
-
Configure the environment variables in the
.env
file as needed.
-
To build the application, run:
make setup
-
To start the application, run:
make up
-
Once the application is started, you can access it from your web browser at
http://localhost:8000
. -
To stop the application, run:
make down
root
├── app # PHP Code
│ └── index.php
├── etc # Infrastructure
│ └── php
│ └── Dockerfile
├── migrations # DB Migrations
│ └── database.sql # Migration example
├── docker-compose.yml
├── Makefile
└── README.md