- apps/api: psycopg v3 repositories, schema.sql + migration runner, state machine implementing the data-model transition table, approval gate with sha256 hash match + 24h expiry enforced at send time, EchoTransport pluggable sender, LLM calls routed through packages.llm-gateway with mock mode, 47 pytest tests green - apps/api/Dockerfile.test: python 3.13-slim test image (DinD-safe: migrations copied as directory) - docker-compose.yml: add api-test service on compose network (host port publishing is broken in this sandbox; container-to-container networking used) - Fix: replace masked placeholder password in config.py/conftest.py defaults
34 lines
No EOL
849 B
YAML
34 lines
No EOL
849 B
YAML
# POC infrastructure for jobhunt-platform.
|
|
# Only the postgres service is defined here; app services are run locally for now.
|
|
services:
|
|
postgres:
|
|
image: postgres:16
|
|
container_name: jobhunt-postgres
|
|
environment:
|
|
POSTGRES_USER: jobhunt
|
|
POSTGRES_PASSWORD: jobhunt
|
|
POSTGRES_DB: jobhunt
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- jobhunt_pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U jobhunt -d jobhunt"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
|
|
api-test:
|
|
build:
|
|
context: ./apps/api
|
|
dockerfile: Dockerfile.test
|
|
environment:
|
|
DATABASE_URL: postgresql://jobhunt:jobhunt@postgres:5432/jobhunt
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
restart: "no"
|
|
|
|
volumes:
|
|
jobhunt_pgdata:
|
|
name: jobhunt_pgdata |