working on wopi scheduler
This commit is contained in:
@@ -4,6 +4,7 @@ export ABRA_ENTRYPOINT_VERSION=v5
|
|||||||
export NGINX_CONF_VERSION=v6
|
export NGINX_CONF_VERSION=v6
|
||||||
export ONLYOFFICE_CONF_VERSION=v2
|
export ONLYOFFICE_CONF_VERSION=v2
|
||||||
export PG_BACKUP_VERSION=v3
|
export PG_BACKUP_VERSION=v3
|
||||||
|
export SCHEDULER_CRON_VERSION=v1
|
||||||
|
|
||||||
environment() {
|
environment() {
|
||||||
# this exports all the secrets as environment variables
|
# this exports all the secrets as environment variables
|
||||||
|
|||||||
+29
@@ -131,6 +131,31 @@ services:
|
|||||||
- postgres_p
|
- postgres_p
|
||||||
- email_pass
|
- 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:
|
celery:
|
||||||
user: ${DOCKER_USER:-1000}
|
user: ${DOCKER_USER:-1000}
|
||||||
image: lasuite/drive-backend:v0.10.1
|
image: lasuite/drive-backend:v0.10.1
|
||||||
@@ -362,6 +387,10 @@ configs:
|
|||||||
pg_backup:
|
pg_backup:
|
||||||
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
|
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
|
||||||
file: pg_backup.sh
|
file: pg_backup.sh
|
||||||
|
scheduler_cron:
|
||||||
|
name: ${STACK_NAME}_scheduler_cron_${SCHEDULER_CRON_VERSION}
|
||||||
|
file: scheduler_cron.tmpl
|
||||||
|
template_driver: golang
|
||||||
abra_entrypoint:
|
abra_entrypoint:
|
||||||
name: ${STACK_NAME}_entrypoint_${ABRA_ENTRYPOINT_VERSION}
|
name: ${STACK_NAME}_entrypoint_${ABRA_ENTRYPOINT_VERSION}
|
||||||
file: abra-entrypoint.sh
|
file: abra-entrypoint.sh
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
*/5 * * * * cd /app && python manage.py trigger_wopi_configuration >> /proc/1/fd/1 2>&1
|
||||||
Reference in New Issue
Block a user