Skip to content

Commit b77b6c3

Browse files
committed
Update README.md
1 parent 45b093a commit b77b6c3

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

README.md

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

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

55
#### Full stack Nginx CodeIgniter "appstarter":
66
<p align="left"> <a href="https://www.codeigniter.com/" target="_blank" rel="noreferrer"> <img src="https://avatars.githubusercontent.com/u/44521256?s=200&v=4" alt="codeigniter" 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-codeigniter-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-codeigniter-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
@@ -215,7 +215,7 @@ Or you should make changes custom host configurations then must restart service
215215
docker container restart codeigniter
216216
```
217217

218-
add and/or remove codeigniter site folders and files with any ftp client program in ```./codeigniter/html``` folder.
218+
add and/or remove codeigniter site folders and files with any ftp client program in ```./codeigniter/appstarter``` folder.
219219
<br />You can also visit `https://example.com` to access website after starting the containers.
220220

221221
#### Redis
@@ -249,12 +249,18 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
249249

250250
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
251251

252-
#### example for crontab file
252+
#### example for crontab file on the host machine
253253

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

257-
##### # backup exclude codeigniter, backups folders in /home/ubuntu/${DIRECTORY_PATH}
258-
00 01 * * * tar -czvf /home/ubuntu/${DIRECTORY_PATH}/backups/'backup-example.com-'$(date +"\%Y-\%m-\%dT\%H-\%M-\%S")'.tar.gz' --exclude='codeigniter/appstarter/app' --exclude='codeigniter/appstarter/tests' --exclude='codeigniter/appstarter/vendor' --exclude='backups' /home/ubuntu/${DIRECTORY_PATH}
256+
```
257+
50 23 * * * find ${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
258+
```
259+
260+
##### # backup exclude codeigniter, backups folders in ${DIRECTORY_PATH}
261+
262+
```
263+
00 01 * * * tar -czvf ${DIRECTORY_PATH}/backups/'backup-example.com-'$(date +"\%Y-\%m-\%dT\%H-\%M-\%S")'.tar.gz' --exclude='codeigniter/appstarter/app' --exclude='codeigniter/appstarter/tests' --exclude='codeigniter/appstarter/vendor' --exclude='backups' ${DIRECTORY_PATH}
264+
```
259265

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

0 commit comments

Comments
 (0)