10000 Improve document · BaseMax/ComposeDockerNginxPHP@70804f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 70804f1

Browse files
committed
Improve document
1 parent 382de68 commit 70804f1

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,25 @@ In summary, while manually setting up a web server environment on a physical or
6868

6969
## Usage
7070

71-
Clone this repository by running git clone https://github.com/basemax/ComposeDockerNginxPHP.git in your terminal.
72-
Navigate to the cloned repository by running cd docker-compose-lemp
73-
Run docker-compose up -d to start the containers in detached mode.
74-
Open http://localhost:80 in your browser for Nginx. You should see the default Nginx welcome page.
75-
Open http://localhost:8080 in your browser for PHPMyAdmin. You will be prompted to enter a username and password to log in. The default username is root and the default password is password.
71+
### Bringing up the stack
7672

73+
Clone this repository onto the Docker host that will run the stack:
74+
75+
```console
76+
git clone https://github.com/BaseMax/ComposeDockerNginxPHP.git
77+
```
78+
79+
then navigate to project directory and start the stack's services locally using Docker Compose:
80+
81+
```console
82+
docker-compose up
83+
```
84+
85+
> **Note**
86+
> You can also run all services in the background (detached mode) by appending the `-d` flag to the above command.
87+
88+
Now for test, Open `http://localhost:80` for Nginx. You should see the default Nginx welcome page.
89+
Open `http://localhost:8080` in your browser for PHPMyAdmin. You will be prompted to enter a username and password to log in. The default username is `root` and the default password is `changethis`.
7790

7891
## Configuration
7992

0 commit comments

Comments
 (0)
0