Add Loomio cronjob

This commit is contained in:
3wc 2022-05-09 12:26:28 +01:00
parent 534fb7acd3
commit 6efd67ee6e

View File

@ -107,6 +107,30 @@ services:
- redis - redis
environment: environment:
- REDIS_URL=redis://redis:6379 - REDIS_URL=redis://redis:6379
cron:
image: loomio/loomio:v2.7.10
entrypoint: "/usr/local/bundle/bin/bundle"
command: ["exec", "rake", "loomio:hourly_tasks"]
environment: *default-env
volumes:
- loomio_uploads:/loomio/public/system
- loomio_storage:/loomio/storage
- loomio_files:/loomio/public/files
- loomio_plugins:/loomio/plugins/docker
- loomio_import:/import
networks:
- backend
depends_on:
- db
- redis
deploy:
mode: replicated
replicas: 0
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=0 * * * *"
restart_policy:
condition: none
networks: networks:
backend: backend:
proxy: proxy: