docker-compose.yml 365 B

1234567891011121314
  1. services:
  2. # mongo数据库
  3. faiss-mongo:
  4. image: mongo:4.4.1
  5. restart: always
  6. environment:
  7. MONGO_INITDB_ROOT_USERNAME: root
  8. MONGO_INITDB_ROOT_PASSWORD: faiss_image_search
  9. volumes:
  10. - ~/data/faiss-mongo/mongo/db:/data/db
  11. - ~/data/faiss-mongo/mongo/log:/var/log/mongodb
  12. ports:
  13. - 27017:27017