ЛР 5 — БВТ2303 — Голиков — на 5 #69

Closed
Maximillan_Mercer wants to merge 46 commits from Maximillan_Mercer/mtusi2026lab5-fork:solution/BVT2303-Golikov into main
3 changed files with 5 additions and 2 deletions
Showing only changes of commit af9e94080e - Show all commits
+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: