feat: add 4 and 5 track 2
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
TAskMAster339
2026-10-01 20:46:42 +03:00
parent a9dda20540
commit b0fe7350c8
135 changed files with 45120 additions and 145 deletions
+17
View File
@@ -1,4 +1,14 @@
services:
redis:
image: redis:7.4.11-bookworm
command: ["redis-server", "--appendonly", "yes", "--appendfsync", "everysec", "--dir", "/data"]
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 3s
retries: 20
db:
image: postgres:16.10-bookworm
environment:
@@ -18,12 +28,15 @@ services:
APP_HOST: 0.0.0.0
APP_PORT: 8080
SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600}
REDIS_ADDR: redis:6379
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable
ports:
- "127.0.0.1:8080:8080"
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "./messenger", "healthcheck"]
interval: 5s
@@ -36,9 +49,12 @@ services:
target: builder
environment:
TEST_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable
TEST_REDIS_ADDR: redis:6379
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
command: ["go", "test", "-race", "-count=1", "-v", "./src/backend/..."]
frontend:
build:
@@ -61,3 +77,4 @@ services:
volumes:
postgres_data:
redis_data: