add tests

This commit is contained in:
2026-10-26 23:02:39 +03:00
parent 3082b84f61
commit 8ad0bb6947
22 changed files with 1042 additions and 121 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ services:
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
- "127.0.0.1:${DB_HOST_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
@@ -34,7 +34,7 @@ services:
volumes:
- redisdata:/data
ports:
- "127.0.0.1:6379:6379"
- "127.0.0.1:${REDIS_HOST_PORT:-6379}:6379"
healthcheck:
test: ["CMD-SHELL", "redis-cli -a \"$$REDIS_PASSWORD\" --no-auth-warning ping | grep -q PONG"]
interval: 5s
@@ -57,7 +57,7 @@ services:
restart: unless-stopped
env_file: .env
ports:
- "127.0.0.1:8080:8080"
- "127.0.0.1:${API_HOST_PORT:-8080}:8080"
depends_on:
postgres:
condition: service_healthy