Update README for background tasks

This commit is contained in:
Philipp Holzer 2021-03-27 23:43:35 +01:00
parent 500708b304
commit 7617279889
No known key found for this signature in database
GPG Key ID: 9A28B7D4FF5667BD
1 changed files with 6 additions and 5 deletions

View File

@ -50,13 +50,14 @@ As the fastCGI-Process is not capable of serving static files (style sheets, ima
This can be achieved with the `volumes-from` option.
You can find more information in the docker-compose section.
## Using the cron job
## Background tasks
There are three options to enable the cron-job for Friendica:
Friendica requires background tasks to fetch and send all kind of messages and maintain the complete instance.
This setup is crucial for the Friendica node.
There are two options to enable background tasks for Friendica:
- Using the default Image and activate the cron-job (see [Installation](https://friendi.ca/resources/installation/), sector `Activating scheduled tasks`)
- Using the default image (apache, fpm, fpm-alpine) and creating **two** container (one for cron and one for the main app)
- Using one of the additional, prepared [`cron dockerfiles`](https://github.com/friendica/docker/tree/stable/.examples/dockerfiles/cron)
- Using the default Image and manually setup background tasks (see Friendica [Install](https://github.com/friendica/friendica/blob/2021.03-rc/doc/Install.md#required-background-tasks))
- Using the default image (apache, fpm, fpm-alpine) and starting a dedicated `cron` instance and use `cron.sh` as startup command (like this [Example](https://github.com/friendica/docker/blob/stable/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml))
## Possible Environment Variables