Files
PolyMPR/compose.test.yml
T
2026-04-27 00:04:28 +02:00

43 lines
1.0 KiB
YAML

services:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
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
app:
image: denoland/deno:alpine
working_dir: /app
volumes:
- .:/app
- deno_cache:/deno-dir
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:
db:
condition: service_healthy
volumes:
db_data_test:
deno_cache: