haiku.rag/tests/docker/docker-compose.yml
2026-06-04 11:13:16 +03:00

50 lines
1.5 KiB
YAML

# Services for the integration tests (marked `integration`, excluded in CI).
# Start them all:
# docker compose -f tests/docker/docker-compose.yml up -d
# Stop and clean up:
# docker compose -f tests/docker/docker-compose.yml down -v
#
# Tests skip automatically when a service isn't reachable, so you only need to
# bring up the ones you care about. The docling-serve picture-description test
# also needs Ollama running on the host with the `ministral-3` model.
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: haiku
POSTGRES_PASSWORD: secret
POSTGRES_DB: haiku_rag_test
ports:
- "55432:5432"
tmpfs:
- /var/lib/postgresql/data
docling-serve:
image: quay.io/docling-project/docling-serve:latest
ports:
- "5001:5001"
environment:
# Required for picture-description via a remote VLM (e.g. host Ollama).
- DOCLING_SERVE_ENABLE_REMOTE_SERVICES=true
- DOCLING_SERVE_ENABLE_UI=1
extra_hosts:
# Let the container reach the host's Ollama for VLM picture descriptions.
- "host.docker.internal:host-gateway"
seaweedfs:
image: chrislusf/seaweedfs
ports:
- "8333:8333"
command: server -s3 -s3.config=/etc/seaweedfs/s3-config.json
volumes:
- ./s3-config.json:/etc/seaweedfs/s3-config.json:ro
createbucket:
image: chrislusf/seaweedfs
depends_on:
- seaweedfs
entrypoint: >
/bin/sh -c "
sleep 3 &&
echo 's3.bucket.create -name test-bucket' | weed shell -master seaweedfs:9333
"