qdrant-gpu.yml 571 B

12345678910111213141516171819202122
  1. qdrant:
  2. image: qdrant/qdrant:gpu-nvidia-latest
  3. ports:
  4. - "6333:6333"
  5. volumes:
  6. - qdrant_data:/qdrant/storage
  7. deploy:
  8. resources:
  9. reservations:
  10. devices:
  11. - driver: nvidia
  12. capabilities: ["gpu"]
  13. healthcheck:
  14. test:
  15. - CMD-SHELL
  16. - 'PORT_HEX="$(printf ''%04X'' 6333)"; cat /proc/net/tcp /proc/net/tcp6 2>/dev/null | grep -q ":$${PORT_HEX} "'
  17. interval: 5s
  18. timeout: 3s
  19. retries: 20
  20. start_period: 10s
  21. stop_grace_period: 30s
  22. restart: unless-stopped