automatic wopi configuration

This commit is contained in:
notplants
2026-01-26 18:18:16 -05:00
parent a2d8ebb8e5
commit 2c7387523f
5 changed files with 30 additions and 12 deletions

View File

@ -131,8 +131,8 @@ 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
# this may be unecessary once the PR is merged to use celery beat
# but this is a workaround for now https://github.com/suitenumerique/drive/issues/484
scheduler:
image: lasuite/drive-backend:main
user: ${DOCKER_USER:-1000}
@ -143,11 +143,14 @@ services:
- 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"]
- source: schedule_wopi
target: /app/schedule_wopi.sh
mode: 0755
- source: abra_entrypoint
target: /abra-entrypoint.sh
mode: 0555
entrypoint: ["/app/schedule_wopi.sh"]
secrets:
- django_sk
- django_sp
@ -387,9 +390,9 @@ 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
schedule_wopi:
name: ${STACK_NAME}_schedule_wopi_${SCHEDULE_WOPI_VERSION}
file: schedule_wopi.sh
template_driver: golang
abra_entrypoint:
name: ${STACK_NAME}_entrypoint_${ABRA_ENTRYPOINT_VERSION}