Skip to content

Commit 9bd81b1

Browse files
committed
readme changed
2 parents 043875b + 588b111 commit 9bd81b1

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
1-
# docker-multiple-php-develoment
1+
# Docker Multiple php Develoment Enviroment
2+
Docker enviroment for multiple php application development. It can run multiple php version at a time. It consists of the following:
3+
- PHP
4+
- Apache
5+
- MySQL
6+
- phpMyAdmin
7+
- Adminer
8+
- composer
9+
10+
## Setup
11+
Clone or download this repository and run
12+
```bash
13+
docker compose up
14+
```
15+
16+
## Directory Structure
17+
├── docker-files # Dockerfiles for php
18+
├── PHP72.Dockerfile # Dockerfile for php7.2
19+
├── PHP74.Dockerfile # Dockerfile for php7.4
20+
├── PHP80.Dockerfile # Dockerfile for php8.0
21+
├── PHP82.Dockerfile # Dockerfile for php8.2
22+
├── mysql-data # Mysql Server Data
23+
├── www # Docker volume for /var/www/html/
24+
├── php72 # Docker volume for /var/www/html/ php7.2
25+
├── php74 # Docker volume for /var/www/html/ php7.4
26+
├── php80 # Docker volume for /var/www/html/ php8.0
27+
├── php82 # Docker volume for /var/www/html/ php8.2
28+
├── docker-compose.yaml # Docker compose file
29+
30+
## Usage
31+
After running docker compose up put your php application file into www/php{version}. php apache server will run on port 8072, 8074, 8080, 8082
32+
| Container | Port |
33+
| :-------- | :------- |
34+
| `PHP 7.2` | `8072` |
35+
| `PHP 7.4` | `8074` |
36+
| `PHP 8.0` | `8080` |
37+
| `PHP 8.2` | `8082` |
38+
| `MySql` | `3306` |
39+
| `phpmyadmin` | `9000` |
40+
| `adminer` | `9001` |

0 commit comments

Comments
 (0)