services:
  postgres:
    image: timescale/timescaledb:latest-pg17
    container_name: tip-postgres
    environment:
      POSTGRES_DB: transceiver_db
      POSTGRES_USER: tip
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-tip_dev_2026}
    ports:
      - "5433:5432"
    volumes:
      - tip_pgdata:/var/lib/postgresql/data
      - ./sql:/docker-entrypoint-initdb.d
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U tip -d transceiver_db"]
      interval: 5s
      timeout: 5s
      retries: 5

  qdrant:
    image: qdrant/qdrant:latest
    container_name: tip-qdrant
    ports:
      - "6333:6333"
      - "6334:6334"
    volumes:
      - tip_qdrant:/qdrant/storage
    environment:
      QDRANT__SERVICE__GRPC_PORT: 6334

volumes:
  tip_pgdata:
  tip_qdrant:
