working on wopi scheduler
This commit is contained in:
29
compose.yml
29
compose.yml
@ -131,6 +131,31 @@ services:
|
||||
- postgres_p
|
||||
- email_pass
|
||||
|
||||
# this may be unnecesary once the PR is merge to use celery beat
|
||||
# but this is a cron job workaround for now https://github.com/suitenumerique/drive/issues/484
|
||||
scheduler:
|
||||
image: lasuite/drive-backend:main
|
||||
user: ${DOCKER_USER:-1000}
|
||||
networks:
|
||||
- backend
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
environment:
|
||||
<<: [ *common-env, *postgres-env ]
|
||||
entrypoint: ["/abra-entrypoint.sh", "/usr/local/bin/entrypoint"]
|
||||
configs:
|
||||
- source: scheduler_cron
|
||||
target: /etc/crontabs/root
|
||||
command: ["crond", "-f", "-l", "2"]
|
||||
secrets:
|
||||
- django_sk
|
||||
- django_sp
|
||||
- oidc_rpcs
|
||||
- minio_rp
|
||||
- postgres_p
|
||||
- email_pass
|
||||
|
||||
celery:
|
||||
user: ${DOCKER_USER:-1000}
|
||||
image: lasuite/drive-backend:v0.10.1
|
||||
@ -362,6 +387,10 @@ configs:
|
||||
pg_backup:
|
||||
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
|
||||
file: pg_backup.sh
|
||||
scheduler_cron:
|
||||
name: ${STACK_NAME}_scheduler_cron_${SCHEDULER_CRON_VERSION}
|
||||
file: scheduler_cron.tmpl
|
||||
template_driver: golang
|
||||
abra_entrypoint:
|
||||
name: ${STACK_NAME}_entrypoint_${ABRA_ENTRYPOINT_VERSION}
|
||||
file: abra-entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user