Update README
This commit is contained in:
28
README.md
28
README.md
@@ -52,7 +52,7 @@ which docker-compose
|
|||||||
|
|
||||||
Check Docker Compose compatibility :
|
Check Docker Compose compatibility :
|
||||||
|
|
||||||
- [Compose file version 3 reference](https://docs.docker.com/compose/compose-file/)
|
* [Compose file version 3 reference](https://docs.docker.com/compose/compose-file/)
|
||||||
|
|
||||||
The following is optional but makes life more enjoyable :
|
The following is optional but makes life more enjoyable :
|
||||||
|
|
||||||
@@ -86,17 +86,17 @@ This project use the following ports :
|
|||||||
| Nginx | 8000 |
|
| Nginx | 8000 |
|
||||||
| Nginx SSL | 3000 |
|
| Nginx SSL | 3000 |
|
||||||
|
|
||||||
---
|
___
|
||||||
|
|
||||||
## Clone the project
|
## Clone the project
|
||||||
|
|
||||||
To install [Git](http://git-scm.com/book/en/v2/Getting-Started-Installing-Git), download it and install following the instructions :
|
To install [Git](http://git-scm.com/book/en/v2/Getting-Started-Installing-Git), download it and install following the instructions :
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/nanoninja/docker-nginx-php-mysql.git
|
git clone https://github.com/nanoninja/docker-nginx-php-mysql.git
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to the project directory :
|
Go to the project directory :
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd docker-nginx-php-mysql
|
cd docker-nginx-php-mysql
|
||||||
@@ -134,7 +134,7 @@ cd docker-nginx-php-mysql
|
|||||||
└── index.php
|
└── index.php
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
___
|
||||||
|
|
||||||
## Configure Nginx With SSL Certificates
|
## Configure Nginx With SSL Certificates
|
||||||
|
|
||||||
@@ -164,7 +164,7 @@ If you modify the host name, do not forget to add it to the `/etc/hosts` file.
|
|||||||
# }
|
# }
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
___
|
||||||
|
|
||||||
## Configure Xdebug
|
## Configure Xdebug
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ For a better integration of Docker to PHPStorm, use the [documentation](https://
|
|||||||
```sh
|
```sh
|
||||||
xdebug.remote_host=192.168.0.1 # your IP
|
xdebug.remote_host=192.168.0.1 # your IP
|
||||||
```
|
```
|
||||||
---
|
___
|
||||||
|
|
||||||
## Run the application
|
## Run the application
|
||||||
|
|
||||||
@@ -219,7 +219,7 @@ For a better integration of Docker to PHPStorm, use the [documentation](https://
|
|||||||
sudo docker-compose down -v
|
sudo docker-compose down -v
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
___
|
||||||
|
|
||||||
## Use Makefile
|
## Use Makefile
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ When developing, you can use [Makefile](https://en.wikipedia.org/wiki/Make_(soft
|
|||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
Start the application :
|
Start the application :
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo make docker-start
|
sudo make docker-start
|
||||||
@@ -253,7 +253,7 @@ Show help :
|
|||||||
make help
|
make help
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
___
|
||||||
|
|
||||||
## Use Docker commands
|
## Use Docker commands
|
||||||
|
|
||||||
@@ -342,10 +342,8 @@ source .env && sudo docker exec -i $(sudo docker-compose ps -q mysqldb) mysql -u
|
|||||||
?>
|
?>
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
___
|
||||||
|
|
||||||
## Help us !
|
## Help us
|
||||||
|
|
||||||
Any thought, feedback or (hopefully not!)
|
Any thought, feedback or (hopefully not!)
|
||||||
|
|
||||||
Developed by [@letvinz](https://twitter.com/letvinz)
|
|
||||||
Reference in New Issue
Block a user