chore: carry over lab3 implementation

This commit is contained in:
2026-11-05 12:31:02 +03:00
parent ec540a1a72
commit 4ffde2494c
73 changed files with 14538 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
name: messenger-lab4-test
services:
postgres:
image: postgres:17.2-alpine
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: messenger_test
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "test", "-d", "messenger_test"]
interval: 2s
timeout: 3s
retries: 15
redis:
image: redis:7.4.1-alpine
command: ["redis-server", "--save", "", "--appendonly", "no"]
tests:
build:
context: .
target: test
image: mtusi-messenger-lab4-test:dev
environment:
DATABASE_URL: postgresql://test:test@postgres:5432/messenger_test?connection_limit=20
CACHE_URL: redis://redis:6379/0
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started