Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c09a414

Browse files
authored
Update README.md
1 parent 254451e commit c09a414

File tree

1 file changed

+46
-8
lines changed

1 file changed

+46
-8
lines changed

‎README.md

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,61 @@
11
# php-docker-env
22
Setup nginx, mysql, memcached & php env by docker
33

4-
- [Installation](#installation)
5-
- [Usage](#usage)
4+
- [How to use](#how-to-use)
65
- [License](#license)
76

87

9-
Installation
10-
------------
11-
8+
How to use
9+
----------
10+
1. Download this repo into your local machine
1211
``` bash
1312
$ git clone git@github.com:moitran/php-docker-env.git
1413
```
14+
2. Run script to build & start all container
15+
```
16+
$ ./bin/run.sh
17+
```
18+
3. In this repo have two example projects (you can remove it and replace by your repositories):
19+
- *./www/site1/* this one will use *./etc/nginx/site1.conf*
20+
- *./www/site2/* this one will use *./etc/nginx/site2.conf*
21+
22+
Now, Open your browser and go to:
23+
24+
- localhost:8080 you will see:
25+
26+
```
27+
Connected successfully
28+
Site1
29+
```
1530
16-
Usage
17-
-----
31+
- localhost:8081 you will see:
32+
33+
```
34+
Connected successfully
35+
Site2
36+
```
1837
38+
Well Done!!!!
39+
40+
4. Source code structure
41+
42+
```
43+
├── bin
44+
│ ├── run.sh Run all docker containers
45+
│ └── down.sh Stop all docker containers
46+
├── etc
47+
│ ├── dbScripts You can put all sql dump script into this folder. It will be automatic to run when start mysql container.
48+
│ ├── nginx Nginx conf files
49+
│ └── php php.ini config files
50+
├── logs All error.log & access.log of nginx will sync into this folder
51+
├── mysql Mysql container
52+
├── nginx NGINX container
53+
├── php PHP container
54+
├── www Put all php projects into this folder
55+
└── docker-composer.yml
56+
```
1957
2058
License
2159
-------
2260
23-
This source code is under [MIT License](https://github.com/moitran/php-docker-env/blob/master/LICENSE)
61+
This source code is under [MIT License](https://github.com/moitran/php-docker-env/blob/master/LICENSE)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /