services:
  redis-test:
    image: redis:7-alpine
    container_name: agentkit_test_redis
    command: redis-server --appendonly no
    ports:
      - "6381:6379"
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 2s
      timeout: 3s
      retries: 5

  postgres-test:
    image: pgvector/pgvector:pg15
    container_name: agentkit_test_postgres
    environment:
      POSTGRES_USER: agentkit_test
      POSTGRES_PASSWORD: agentkit_test_pw
      POSTGRES_DB: agentkit_test
    ports:
      - "5434:5432"
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U agentkit_test -d agentkit_test"]
      interval: 2s
      timeout: 3s
      retries: 5
