Skip to content

Commit 43e88e7

Browse files
committed
Update README.md
1 parent 8e178ed commit 43e88e7

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [full stack nginx CakePHP for everyone with docker compose](https://github.com/damalis/full-stack-nginx-cakephp-for-everyone-with-docker-compose)
22

3-
If You want to have a CakePHP "basic" website at short time;
3+
If You want to build a website with CakePHP "basic" at short time;
44

55
#### Full stack Nginx CakePHP "basic":
66
<p align="left"> <a href="https://www.cakephp.com/" target="_blank" rel="noreferrer"> <img src="https://avatars.githubusercontent.com/u/23666?s=200&v=4" alt="cakephp" height="40" width="40"/> </a>&nbsp;&nbsp;&nbsp; <a href="https://www.docker.com/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/docker/docker.png" alt="docker" width="40" height="40" width="40"/> </a>&nbsp;&nbsp;&nbsp; <a href="https://mariadb.org/" target="_blank" rel="noreferrer"> <img src="https://avatars.githubusercontent.com/u/5877084?s=200&v=4" alt="mariadb" height="50" width="50"/> </a>&nbsp;&nbsp;&nbsp; <a href="https://www.nginx.com" target="_blank" rel="noreferrer"> <img src="https://avatars.githubusercontent.com/u/1412239?s=200&v=4" alt="nginx" height="40" width="40"/> </a>&nbsp;&nbsp;&nbsp; <a href="https://www.php.net" target="_blank" rel="noreferrer"> <img src="https://avatars.githubusercontent.com/u/25158?s=200&v=4" alt="php" height="40" width="40"/> </a>&nbsp;&nbsp;&nbsp; <a href="https://redis.io" target="_blank" rel="noreferrer"> <img src="https://avatars.githubusercontent.com/u/1529926?s=200&v=4" alt="redis" height="40" width="40"/> </a>&nbsp;&nbsp;&nbsp; <a href="#" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/bash/bash.png" alt="Bash" height="50" width="50" /> </a>&nbsp;&nbsp;&nbsp;
@@ -80,7 +80,7 @@ Open a terminal and `cd` to the folder in which `docker-compose.yml` is saved an
8080
cd full-stack-nginx-cakephp-for-everyone-with-docker-compose
8181
```
8282

83-
### Manual Configuration
83+
### Manual
8484

8585
Copy the example environment into `.env`
8686

@@ -104,19 +104,19 @@ change example.com to your domain name in ```./phpmyadmin/apache2/sites-availabl
104104

105105
## Installation
106106

107-
### Manual Installation
107+
### Manual
108108

109109
Firstly: will create external volume
110110

111111
```
112-
docker volume create --driver local --opt type=none --opt device=/home/ubuntu/full-stack-nginx-cakephp-for-everyone-with-docker-compose/certbot --opt o=bind certbot-etc
112+
docker volume create --driver local --opt type=none --opt device=${DIRECTORY_PATH}/certbot --opt o=bind certbot-etc
113113
```
114114

115115
```
116116
docker-compose up -d
117117
```
118118

119-
then reloading for nginx ssl configuration
119+
then reloading for webserver ssl configuration
120120

121121
```
122122
docker container restart webserver
@@ -240,12 +240,18 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
240240

241241
This will back up the all files and folders, once per day, and write it to ./backups with a filename like backup-2022-02-07T16-51-56.tar.gz
242242

243-
#### example for crontab file
243+
#### example for crontab file on the host machine
244244

245245
##### # old docker backup folder remove
246-
50 23 * * * find /home/ubuntu/${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
247246

248-
##### # backup exclude cakephp, backups folders in /home/ubuntu/${DIRECTORY_PATH}
249-
00 01 * * * tar -czvf /home/ubuntu/${DIRECTORY_PATH}/backups/'backup-example.com-'$(date +"\%Y-\%m-\%dT\%H-\%M-\%S")'.tar.gz' --exclude='cakephp/app' --exclude='backups' /home/ubuntu/${DIRECTORY_PATH}
247+
```
248+
50 23 * * * find ${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
249+
```
250+
251+
##### # backup exclude cakephp, backups folders in ${DIRECTORY_PATH}
252+
253+
```
254+
00 01 * * * tar -czvf ${DIRECTORY_PATH}/backups/'backup-example.com-'$(date +"\%Y-\%m-\%dT\%H-\%M-\%S")'.tar.gz' --exclude='cakephp/app' --exclude='backups' ${DIRECTORY_PATH}
255+
```
250256

251257
[CronHowto](https://help.ubuntu.com/community/CronHowto)

0 commit comments

Comments
 (0)