fix(infra): lab5 fix docker entrypoints, migration index and worker deps

This commit is contained in:
Голиков Maximillian Антон
2026-11-08 22:12:14 +03:00
parent 4c979dcc71
commit af9e94080e
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -33,4 +33,4 @@ USER app
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
CMD wget -q -O - http://127.0.0.1:8080/health/live >/dev/null || exit 1
ENTRYPOINT ["/server"]
CMD ["/server"]
+1
View File
@@ -13,6 +13,7 @@ ALTER TABLE attachments ADD CONSTRAINT attachments_error_code_consistency
);
DROP INDEX IF EXISTS attachments_pending_idx;
DROP INDEX IF EXISTS attachments_active_idx;
CREATE INDEX attachments_active_idx
ON attachments (created_at)
WHERE status IN ('queued', 'processing');
+3 -1
View File
@@ -143,7 +143,7 @@ services:
dockerfile: Dockerfile
image: mtusi-messenger-api:lab3
restart: "no"
command: ["migrate"]
command: ["/server", "migrate"]
environment:
DATABASE_URL_FILE: /run/secrets/database_url
secrets:
@@ -250,6 +250,8 @@ services:
condition: service_completed_successfully
minio:
condition: service_healthy
mc-init:
condition: service_completed_successfully
rabbitmq:
condition: service_healthy
deploy: