Files
wikideck/compose.postgres-test.yaml
T
2026-10-20 15:21:47 -04:00

29 lines
899 B
YAML
Executable File

# Disposable isolated integration fixture ONLY. No persistent/host database ports or credentials.
# Trust auth is confined to this temporary internal network and is never a deployment example.
services:
database:
image: postgres:17-alpine
environment:
POSTGRES_DB: custody_test
POSTGRES_HOST_AUTH_METHOD: trust
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d custody_test"]
interval: 1s
timeout: 3s
retries: 30
networks: [fixture]
tests:
image: wikideck-custody-test
network_mode: service:database
depends_on:
database:
condition: service_healthy
environment:
WIKIDECK_PG_DISPOSABLE_TEST: "1"
command: ["npx", "tsx", "--test", "--test-concurrency=1", "tests/postgres/*.test.ts"]
networks:
fixture:
internal: true