Add Loomio cronjob
This commit is contained in:
parent
534fb7acd3
commit
6efd67ee6e
24
compose.yml
24
compose.yml
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user