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> <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> <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> <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> <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> <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> <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>
@@ -80,7 +80,7 @@ Open a terminal and `cd` to the folder in which `docker-compose.yml` is saved an
8080cd full-stack-nginx-cakephp-for-everyone-with-docker-compose
8181```
8282
83- ### Manual Configuration
83+ ### Manual
8484
8585Copy 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
109109Firstly: 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```
116116docker-compose up -d
117117```
118118
119- then reloading for nginx ssl configuration
119+ then reloading for webserver ssl configuration
120120
121121```
122122docker container restart webserver
@@ -240,12 +240,18 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
240240
241241This 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