fix: fixed test ci

This commit is contained in:
2026-04-27 00:04:28 +02:00
parent fcc9547a30
commit 56019ad372
3 changed files with 118 additions and 21 deletions
+14 -21
View File
@@ -6,21 +6,29 @@ services:
POSTGRES_PASSWORD: testpass
POSTGRES_USER: postgres
POSTGRES_DB: polympr_test
volumes:
# Init script strips drizzle-kit markers and applies migrations on first start
- ./databases/docker-init.sh:/docker-entrypoint-initdb.d/01-migrate.sh:ro
- ./databases/migrations:/migrations:ro
- db_data_test:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
migrate:
app:
image: denoland/deno:alpine
working_dir: /app
volumes:
- .:/app
command: task migrate
- deno_cache:/deno-dir
command: run -A --unstable-ffi main.ts
ports:
- "4430:443"
environment:
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_PORT: "5432"
POSTGRES_USER: postgres
POSTGRES_PASS: testpass
POSTGRES_DB: polympr_test
@@ -29,21 +37,6 @@ services:
db:
condition: service_healthy
app:
image: denoland/deno:alpine
working_dir: /app
volumes:
- .:/app
command: run -A --unstable-ffi main.ts
ports:
- "4430:443"
environment:
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASS: testpass
POSTGRES_DB: polympr_test
LOCAL: "true"
depends_on:
migrate:
condition: service_completed_successfully
volumes:
db_data_test:
deno_cache: