Add safe attachment reconciliation and scoped maintenance checks

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 14:08:12 +03:00
parent 9347fe35ae
commit dc4f5c6c7f
9 changed files with 403 additions and 0 deletions
+20
View File
@@ -102,6 +102,26 @@ services:
cpus: 0.5
mem_limit: 256m
reconcile:
profiles: [maintenance]
build: .
command: ["python", "scripts/reconcile-attachments.py"]
environment:
DATABASE_URL_FILE: /run/secrets/database_url
S3_ENDPOINT: s3:9000
S3_ACCESS_KEY_ID_FILE: /run/secrets/s3_maintenance_key_id
S3_SECRET_ACCESS_KEY_FILE: /run/secrets/s3_maintenance_secret_key
secrets: [database_url, s3_maintenance_key_id, s3_maintenance_secret_key]
volumes: ["./tests/fixtures:/fixtures:ro"]
depends_on:
migrate:
condition: service_completed_successfully
s3-bootstrap:
condition: service_completed_successfully
restart: "no"
cpus: 0.5
mem_limit: 256m
lb:
image: haproxy:3.0.11-alpine
volumes: