Update README.md
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
af442be7c5
commit
0ff543d812
|
@ -47,7 +47,7 @@ Then add one of the below cron examples.
|
|||
To run the job every Sunday at midnight:
|
||||
|
||||
```cron
|
||||
0 0 * * 0 /usr/bin/docker compose -f /root/clam/docker-compose.yml up -d --pull --force-recreate clamav
|
||||
0 0 * * 0 /usr/bin/docker compose -f /root/clam/docker-compose.yml up -d --pull --force-recreate clam
|
||||
```
|
||||
|
||||
### Once Every Two Weeks
|
||||
|
@ -55,7 +55,7 @@ To run the job every Sunday at midnight:
|
|||
Cron does not natively support a bi-weekly schedule directly. However, you can achieve this by specifying two days of the month, such as the 1st and 15th:
|
||||
|
||||
```cron
|
||||
0 0 1,15 * * /usr/bin/docker compose -f /root/clam/docker-compose.yml up -d --pull --force-recreate clamav
|
||||
0 0 1,15 * * /usr/bin/docker compose -f /root/clam/docker-compose.yml up -d --pull --force-recreate clam
|
||||
```
|
||||
|
||||
### Once a Month
|
||||
|
@ -63,11 +63,11 @@ Cron does not natively support a bi-weekly schedule directly. However, you can a
|
|||
To run the job on the first day of every month at midnight:
|
||||
|
||||
```cron
|
||||
0 0 1 * * /usr/bin/docker compose -f /root/clam/docker-compose.yml up -d --pull --force-recreate clamav
|
||||
0 0 1 * * /usr/bin/docker compose -f /root/clam/docker-compose.yml up -d --pull --force-recreate clam
|
||||
```
|
||||
|
||||
### Notes:
|
||||
|
||||
- Ensure that `/usr/bin/docker` is the correct path to your Docker binary. This path might vary depending on your system's configuration.
|
||||
- Replace `/root/clam` with the actual directory path where your `docker-compose.yml` file is located.
|
||||
- These cron jobs will pull the latest image and recreate the `clamav` container according to the specified schedule. Ensure that this behavior aligns with your maintenance and update policies.
|
||||
- These cron jobs will pull the latest image and recreate the `clam` container according to the specified schedule. Ensure that this behavior aligns with your maintenance and update policies.
|
||||
|
|
Loading…
Reference in New Issue