# 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" WIKIDECK_CUSTODY_CANONICAL_REHEARSAL: "1" NODE_ENV: test command: ["npx", "tsx", "--test", "--test-concurrency=1", "tests/postgres/*.test.ts"] networks: fixture: internal: true