Skip to content

Commit 571c9b3

Browse files
docs: Add Docker setup instructions for Apache and Nginx servers in README.md. (#103)
1 parent 0cdf064 commit 571c9b3

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,29 @@ php -S localhost:8080 -t public
9595
./yii serve
9696
```
9797

98-
**Access your application**
98+
**Start Apache or Nginx server**
9999

100+
```bash
101+
# For Apache
102+
docker-compose up -d
103+
104+
# For Nginx
105+
docker-compose -f docker-compose.nginx.yml up -d
100106
```
107+
108+
### Access your application
109+
110+
After starting the server, you can access your application in your web browser.
111+
112+
```bash
113+
# For built-in PHP server
114+
http://localhost:8080/
115+
116+
# For Apache
101117
http://localhost:8080/
118+
119+
# For Nginx
120+
http://localhost:8081/
102121
```
103122

104123
### Basic usage
@@ -112,6 +131,10 @@ root/
112131
│ ├── console/ Console configuration
113132
│ ├── web/ Web configuration
114133
│ └── messages.php Translation config
134+
├── docker/ Docker configuration files
135+
│ ├── apache/ Apache configuration
136+
│ ├── nginx/ Nginx configuration
137+
│ └── php/ PHP configuration
115138
├── src/
116139
│ ├── framework/ Framework assets & resources
117140
│ │ ├── asset/ Asset bundles

0 commit comments

Comments
 (0)