feat(worker): process attachments with thumbnails and bounded retries

This commit is contained in:
kk10
2026-11-15 16:50:27 +03:00
parent 8b0ab5440d
commit 19152e7d18
15 changed files with 994 additions and 50 deletions
+29 -1
View File
@@ -3,7 +3,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: mtusi-messenger:lab4
image: mtusi-messenger:lab5
env_file:
- .env
secrets:
@@ -27,6 +27,34 @@ services:
condition: service_healthy
restart: unless-stopped
worker:
build:
context: .
dockerfile: Dockerfile.worker
image: mtusi-messenger-worker:lab5
env_file:
- .env
secrets:
- database_url
- broker_url
- s3_access_key_id
- s3_secret_access_key
- s3_bootstrap_access_key_id
- s3_bootstrap_secret_access_key
deploy:
resources:
limits:
cpus: "1.0"
memory: 1G
depends_on:
migrate:
condition: service_completed_successfully
s3:
condition: service_healthy
rabbitmq:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:18.6
ports: