Skip to content

Commit

Permalink
Update cron schedule (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Oct 15, 2020
1 parent ebcec60 commit eed4c32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Image: crazymax/nextcloud:latest
> :warning: Only used if you enable and run a [sidecar cron container](#cronjob)
* `SIDECAR_CRON`: Set to `1` to enable sidecar cron mode (default `0`)
* `CRON_PERIOD`: Periodically execute Nextcloud [cron](https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html#cron) (eg. `*/15 * * * *`)
* `CRON_PERIOD`: Periodically execute Nextcloud [cron](https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html#cron) (eg. `*/5 * * * *`)

### News Updater

Expand Down Expand Up @@ -193,7 +193,7 @@ If you want to enable the cronjob, you have to run a "sidecar" container (see cr
docker run -d --name nextcloud_cron \
--env-file $(pwd)/nextcloud.env \
-e SIDECAR_CRON=1 \
-e CRON_PERIOD=*/15 * * * * \
-e CRON_PERIOD=*/5 * * * * \
-v $(pwd)/data:/data \
crazymax/nextcloud:latest
```
Expand Down
2 changes: 1 addition & 1 deletion examples/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ services:
- "DB_USER=${MYSQL_USER}"
- "DB_PASSWORD=${MYSQL_PASSWORD}"
- "SIDECAR_CRON=1"
- "CRON_PERIOD=*/15 * * * *"
- "CRON_PERIOD=*/5 * * * *"
restart: always

news_updater:
Expand Down
2 changes: 1 addition & 1 deletion examples/traefik/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ services:
- "DB_USER=${MYSQL_USER}"
- "DB_PASSWORD=${MYSQL_PASSWORD}"
- "SIDECAR_CRON=1"
- "CRON_PERIOD=*/15 * * * *"
- "CRON_PERIOD=*/5 * * * *"
restart: always

news_updater:
Expand Down

0 comments on commit eed4c32

Please sign in to comment.