docker-compose.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. services:
  2. etcd:
  3. container_name: milvus-etcd
  4. image: quay.io/coreos/etcd:v3.5.25
  5. environment:
  6. - ETCD_AUTO_COMPACTION_MODE=revision
  7. - ETCD_AUTO_COMPACTION_RETENTION=1000
  8. - ETCD_QUOTA_BACKEND_BYTES=4294967296
  9. - ETCD_SNAPSHOT_COUNT=50000
  10. volumes:
  11. - ./volumes/etcd:/etcd
  12. command: >-
  13. etcd -advertise-client-urls=http://etcd:2379
  14. -listen-client-urls http://0.0.0.0:2379
  15. --data-dir /etcd
  16. healthcheck:
  17. test: ["CMD", "etcdctl", "endpoint", "health"]
  18. interval: 30s
  19. timeout: 20s
  20. retries: 3
  21. minio:
  22. container_name: milvus-minio
  23. image: minio/minio:RELEASE.2024-05-28T17-19-04Z
  24. environment:
  25. MINIO_ACCESS_KEY: minioadmin
  26. MINIO_SECRET_KEY: minioadmin
  27. ports:
  28. - "9000:9000"
  29. - "9001:9001"
  30. volumes:
  31. - ./volumes/minio:/minio_data
  32. command: minio server /minio_data --console-address ":9001"
  33. healthcheck:
  34. test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
  35. interval: 30s
  36. timeout: 20s
  37. retries: 3
  38. standalone:
  39. container_name: milvus-standalone
  40. image: milvusdb/milvus:v2.6.18
  41. command: ["milvus", "run", "standalone"]
  42. security_opt:
  43. - seccomp:unconfined
  44. environment:
  45. MINIO_REGION: us-east-1
  46. ETCD_ENDPOINTS: etcd:2379
  47. MINIO_ADDRESS: minio:9000
  48. volumes:
  49. - ./volumes/milvus:/var/lib/milvus
  50. healthcheck:
  51. test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
  52. interval: 30s
  53. start_period: 90s
  54. timeout: 20s
  55. retries: 3
  56. ports:
  57. - "19530:19530"
  58. - "9091:9091"
  59. depends_on:
  60. - etcd
  61. - minio
  62. networks:
  63. default:
  64. name: milvus