Skip to content

Commit e0d7490

Browse files
committed
Update README.md
1 parent 646ebd3 commit e0d7490

File tree

1 file changed

+29
-19
lines changed

1 file changed

+29
-19
lines changed

README.md

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ Create rules to open ports to the internet, or to a specific IPv4 address or ran
3434

3535
- [Auto Configuration and Installation](#automatic)
3636
- [Requirements](#requirements)
37-
- [Configuration](#configuration)
38-
- [Installation](#installation)
37+
- [Manual Configuration and Installation](#manual)
38+
- [Portainer Installation](#portainer)
3939
- [Usage](#usage)
40+
- [Website](#website)
41+
- [Webserver](#webserver)
42+
- [Redis](#redis)
43+
- [phpMyAdmin](#phpmyadmin)
44+
- [backup](#backup)
4045

4146
## Automatic
4247

@@ -67,7 +72,8 @@ Clone this repository or copy the files from this repository into a new folder.
6772

6873
Make sure to [add your user to the `docker` group](https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user).
6974

70-
## Configuration
75+
## Manual
76+
### Configuration
7177

7278
download with
7379
```
@@ -80,8 +86,6 @@ Open a terminal and `cd` to the folder in which `docker-compose.yml` is saved an
8086
cd full-stack-nginx-cakephp-for-everyone-with-docker-compose
8187
```
8288

83-
### Manual
84-
8589
Copy the example environment into `.env`
8690

8791
```
@@ -102,9 +106,7 @@ cp ./phpmyadmin/apache2/sites-available/default-ssl.sample.conf ./phpmyadmin/apa
102106

103107
change example.com to your domain name in ```./phpmyadmin/apache2/sites-available/default-ssl.conf``` file.
104108

105-
## Installation
106-
107-
### Manual
109+
### Installation
108110

109111
Firstly: will create external volume
110112

@@ -126,7 +128,7 @@ The containers are now built and running. You should be able to access the CakeP
126128

127129
For convenience you may add a new entry into your hosts file.
128130

129-
### Installation Portainer
131+
## Portainer
130132

131133
```
132134
docker volume create portainer_data
@@ -164,7 +166,7 @@ docker-compose stop
164166

165167
### Removing containers
166168

167-
To stop and remove all the containers use the`down` command:
169+
To stop and remove all the containers use the `down` command:
168170

169171
```
170172
docker-compose down
@@ -197,6 +199,10 @@ You can now use the `up` command:
197199
docker-compose up -d
198200
```
199201

202+
### Docker run reference
203+
204+
[https://docs.docker.com/engine/reference/run/](https://docs.docker.com/engine/reference/run/)
205+
200206
### Website
201207

202208
You should see the "Welcome to CakePHP..." page in your browser. If not, please check if your PHP installation satisfies CakePHP's requirements.
@@ -205,27 +211,31 @@ You should see the "Welcome to CakePHP..." page in your browser. If not, please
205211
https://example.com
206212
```
207213

208-
add or remove code in the ```./php-fpm/php/conf.d/security.ini``` file for custom php.ini configurations
214+
add or remove code in the ./php-fpm/php/conf.d/security.ini file for custom php.ini configurations
209215

210-
Copy and paste the following code in the ```./php-fpm/php-fpm.d/z-www.conf``` file for php-fpm configurations at 1Gb Ram Host
216+
[https://www.php.net/manual/en/configuration.file.php](https://www.php.net/manual/en/configuration.file.php)
211217

212-
```
213-
pm.max_children = 19
214-
pm.start_servers = 4
215-
pm.min_spare_servers = 2
216-
pm.max_spare_servers = 4
217-
pm.max_requests = 1000
218-
```
218+
Copy and paste the following code in the ./php-fpm/php-fpm.d/z-www.conf file for php-fpm configurations at 1Gb Ram Host
219219

220220
Or you should make changes custom host configurations then must restart service
221221

222+
FPM uses php.ini syntax for its configuration file - php-fpm.conf, and pool configuration files.
223+
224+
[https://www.php.net/manual/en/install.fpm.configuration.php](https://www.php.net/manual/en/install.fpm.configuration.php)
225+
222226
```
223227
docker container restart cakephp
224228
```
225229

226230
add and/or remove cakephp site folders and files with any ftp client program in ```./cakephp/html``` folder.
227231
<br />You can also visit `https://example.com` to access website after starting the containers.
228232

233+
#### Webserver
234+
235+
add or remove code in the ```./webserver/templates/nginx.conf.template``` file for custom nginx configurations
236+
237+
[https://docs.nginx.com/nginx/admin-guide/basic-functionality/managing-configuration-files/](https://docs.nginx.com/nginx/admin-guide/basic-functionality/managing-configuration-files/)
238+
229239
#### Redis
230240

231241
see [Redis Cache](https://book.cakephp.org/4/en/core-libraries/caching.html#redisengine-options) options and must add below code to config file.

0 commit comments

Comments
 (0)