docker-compose.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. services:
  2. etcd:
  3. container_name: milvus-etcd
  4. image: quay.io/coreos/etcd:v3.5.5
  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. - /data/project-data/milvus/etcd:/etcd
  12. command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
  13. minio:
  14. container_name: milvus-minio
  15. image: minio/minio:RELEASE.2022-03-17T06-34-49Z
  16. environment:
  17. MINIO_ACCESS_KEY: minioadmin
  18. MINIO_SECRET_KEY: minioadmin
  19. # ports:
  20. # - "9001:9001"
  21. # - "9000:9000"
  22. volumes:
  23. - /data/project-data/milvus/minio/:/minio_data
  24. command: minio server /minio_data --console-address ":9001"
  25. healthcheck:
  26. test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
  27. interval: 30s
  28. timeout: 20s
  29. retries: 3
  30. standalone:
  31. container_name: milvus-standalone
  32. image: milvusdb/milvus:v2.2.3
  33. command: ["milvus", "run", "standalone"]
  34. environment:
  35. ETCD_ENDPOINTS: etcd:2379
  36. MINIO_ADDRESS: minio:9000
  37. volumes:
  38. - /data/project-data/milvus/milvus-standalone/:/var/lib/milvus
  39. ports:
  40. - "19530:19530"
  41. - "9091:9091"
  42. depends_on:
  43. - "etcd"
  44. - "minio"
  45. networks:
  46. default:
  47. name: default-network