chore(testserver): host networking, ports 8123/8124, smoke read+update, dbtrace pooled=0 verified

This commit is contained in:
2026-09-30 23:01:52 +02:00
parent ff76eb8e1f
commit da0b1f5123
7 changed files with 18 additions and 21 deletions
+7 -13
View File
@@ -6,17 +6,17 @@ services:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5434:5432"
# Host networking (bridge networks are unavailable in some environments):
# postgres listens directly on host port 8124.
network_mode: host
command: ["postgres", "-p", "8124"]
volumes:
- postgres-test-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
test: ["CMD-SHELL", "pg_isready -U postgres -p 8124"]
interval: 5s
timeout: 5s
retries: 5
networks:
- resolvespec-test
testserver:
build:
@@ -27,18 +27,12 @@ services:
RESOLVESPEC_DB_TRACE_ENABLED: "true"
RESOLVESPEC_DB_TRACE_MIN_CALLS: "1"
RESOLVESPEC_DB_TRACE_POOL_LOG: "true"
ports:
- "8080:8080"
# Serves on host port 8123 (docker/testserver.config.yaml).
network_mode: host
depends_on:
postgres-test:
condition: service_healthy
networks:
- resolvespec-test
volumes:
postgres-test-data:
driver: local
networks:
resolvespec-test:
driver: bridge