Tests / test (==2.12.2) (push) Canceled after 0s
Tests / test (==2.14.3) (push) Canceled after 0s
Tests / test (>=3.3,<4) (push) Canceled after 0s
Tests / test (>=4,<5) (push) Canceled after 0s
Tests / test-postgres (==2.12.2) (push) Canceled after 0s
Tests / test-postgres (>=4,<5) (push) Canceled after 0s
Tests / canary (push) Canceled after 0s
55432 and 55433 are taken by other projects' containers on the dev host, so make pg-up failed. The test database URL carries the port too.
32 lines
903 B
YAML
32 lines
903 B
YAML
# 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:
|