- services:
- # mongo数据库
- faiss-mongo:
- image: mongo:4.4.1
- restart: always
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: faiss_image_search
- volumes:
- - ~/data/faiss-mongo/mongo/db:/data/db
- - ~/data/faiss-mongo/mongo/log:/var/log/mongodb
- ports:
- - 27017:27017
|