diff --git a/dmoj/docker-stack.yml b/dmoj/docker-stack.yml index de1eab9..d2afadc 100644 --- a/dmoj/docker-stack.yml +++ b/dmoj/docker-stack.yml @@ -157,13 +157,16 @@ services: placement: constraints: [ node.hostname == general ] -# backups: -# image: ghcr.io/mcpt/wlmoj-backups -# env_file: [ environment/mysql.env, environment/mysql-admin.env, environment/backups.env ] -# networks: -# - db -# deploy: -# replicas: 1 + sentinel: + image: ghcr.io/mcpt/sentinel + volumes: + - /var/share/:/var/share/:ro + - /var/share/configs/backups/config.toml:/config.toml:ro + command: "--config-file /config.toml" + networks: + - db + deploy: + replicas: 1 redis: image: redis:alpine diff --git a/dmoj/environment/backups.env b/dmoj/environment/backups.env deleted file mode 100644 index ce677e0..0000000 --- a/dmoj/environment/backups.env +++ /dev/null @@ -1,7 +0,0 @@ -S3_BUCKET=wlmoj-backups -S3_ACCESS_KEY_ID= -S3_SECRET_ACCESS_KEY= -S3_REGION= -S3_ENDPOINT=https://.r2.cloudflarestorage.com -MULTI_FILES=no -SCHEDULE="0 4 * * *" # 4 AM UTC \ No newline at end of file