This repository contains a Docker Compose file for setting up a basic and functional environment for developing a PHP application.
- Clone the repository:
git clone https://github.com/nasserman/basic-php-development-docker.git- Rename the cloned directory to a new name:
mv basic-php-development-docker my-project- Change directory into the cloned directory:
cd my-project-
Change "container_name," "ports," and "network" in "docker-compose.yml" according to the new project settings.
-
Create Docker Network if needed:
docker network create [docker-network-name-for-my-project]- Bring up the container:
docker compose up -d-
Put your code into the "src" directory.
-
Navigate to "localhost:[selected-port-in-docker-compose.yml]" to access your application.