# Postgres + pgvector for running the test suite against a real server. # Test-only: nothing here serves HTTP, so there is no caddy network. # The port is published on 127.0.0.1 only, for pytest running on the host. services: ffb-postgres: image: ${FFB_PG_IMAGE:-pgvector/pgvector:pg16} restart: unless-stopped environment: POSTGRES_USER: ${FFB_PG_USER} POSTGRES_PASSWORD: ${FFB_PG_PASSWORD} POSTGRES_DB: ${FFB_PG_DB} ports: - "127.0.0.1:${FFB_PG_PORT:-55447}:5432" volumes: - ffb-postgres-data:/var/lib/postgresql/data - ./docker/postgres-init:/docker-entrypoint-initdb.d:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""] interval: 2s timeout: 3s retries: 30 start_period: 5s networks: - internal volumes: ffb-postgres-data: networks: internal: