docker-compose.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. version: '3.5'
  2. services:
  3. standalone:
  4. container_name: milvus-javasdk-standalone-1
  5. image: milvusdb/milvus:v2.5.18
  6. command: [ "milvus", "run", "standalone" ]
  7. environment:
  8. - COMMON_STORAGETYPE=local
  9. - DEPLOY_MODE=STANDALONE
  10. - ETCD_USE_EMBED=true
  11. - ETCD_DATA_DIR=/var/lib/milvus/etcd
  12. volumes:
  13. - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus-1:/var/lib/milvus
  14. healthcheck:
  15. test: [ "CMD", "curl", "-f", "http://localhost:9091/healthz" ]
  16. interval: 30s
  17. start_period: 90s
  18. timeout: 20s
  19. retries: 3
  20. ports:
  21. - "19530:19530"
  22. - "9091:9091"
  23. standaloneslave:
  24. container_name: milvus-javasdk-standalone-2
  25. image: milvusdb/milvus:v2.5.18
  26. command: [ "milvus", "run", "standalone" ]
  27. environment:
  28. - COMMON_STORAGETYPE=local
  29. - DEPLOY_MODE=STANDALONE
  30. - ETCD_USE_EMBED=true
  31. - ETCD_DATA_DIR=/var/lib/milvus/etcd
  32. volumes:
  33. - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus-2:/var/lib/milvus
  34. healthcheck:
  35. test: [ "CMD", "curl", "-f", "http://localhost:9091/healthz" ]
  36. interval: 30s
  37. start_period: 90s
  38. timeout: 20s
  39. retries: 3
  40. ports:
  41. - "19531:19530"
  42. - "9092:9091"
  43. networks:
  44. default:
  45. name: test-milvus