Skip to content

Commit ace8637

Browse files
committed
cron examples added
1 parent 4842aa5 commit ace8637

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,16 @@ Launch the **Apache** instance locally and setup a local MySQL database containe
5454

5555
The **Apache** container the directory `/data` is shared to your local system via **Line 7** within `docker-compose.local.yml` file
5656

57-
Docker Compose f reference [more info](https://docs.docker.com/compose/compose-file/)
57+
Docker Compose File Reference [more info](https://docs.docker.com/compose/compose-file/)
58+
5859

5960
---
6061

6162
### Google Cloud
6263

6364
Use the following command with Google Compute. This will create a [virtual machine instance](https://cloud.google.com/sdk/gcloud/reference/beta/compute/instances/create-with-container) running [COS](https://cloud.google.com/container-optimized-os/) (Container Operating System).
6465

66+
6567
`.env.LIVE` will need to exist within the directory you execute the following command from:
6668
```bash
6769
gcloud compute instances create-with-container www0 --zone us-central1-b --tags=https-server,http-server --machine-type f1-micro --container-env-file .env.LIVE --container-image=docker.io/htmlgraphic/apache:envoyer
@@ -73,6 +75,19 @@ gcloud compute instances update-container www0 --zone us-central1-b --container-
7375
```
7476

7577

78+
Recommended `cron` enters to have running on the host system. Edit `crontab -e` as `root` for best support.
79+
80+
LetsEncrypt Cert Renewal process:
81+
```bash
82+
52 0,12 * * * root docker exec -it apache_hg-web_1 certbot-auto renew --quiet
83+
```
84+
85+
When host system is restarted, start Docker instance on boot:
86+
```bash
87+
@reboot (sleep 10s ; cd /root/Docker/Apache ; /usr/local/bin/docker-compose up -d )&
88+
```
89+
90+
7691
---
7792

7893
### Mac OS X / Linux

0 commit comments

Comments
 (0)