Skip to content

Commit cdf0719

Browse files
committed
Update README.md
1 parent ed2f30c commit cdf0719

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [full stack proxy nginx CakePHP for everyone with docker compose](https://github.com/damalis/full-stack-proxy-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 Proxy 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;
@@ -81,7 +81,7 @@ Open a terminal and `cd` to the folder in which `docker-compose.yml` is saved an
8181
cd full-stack-proxy-nginx-cakephp-for-everyone-with-docker-compose
8282
```
8383

84-
### Manual Configuration
84+
### Manual
8585

8686
Copy the example environment into `.env`
8787

@@ -105,12 +105,12 @@ change example.com to your domain name in ```./phpmyadmin/apache2/sites-availabl
105105

106106
## Installation
107107

108-
### Manual Installation
108+
### Manual
109109

110110
Firstly: will create external volume
111111

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

116116
```
@@ -241,12 +241,12 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
241241

242242
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
243243

244-
#### example for crontab file
244+
#### example for crontab file on the host machine
245245

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

249-
##### # backup exclude cakephp, backups folders in /home/ubuntu/${DIRECTORY_PATH}
250-
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}
249+
##### # backup exclude cakephp, backups folders in ${DIRECTORY_PATH}
250+
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}
251251

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

0 commit comments

Comments
 (0)