AI / scripts /setup /templates /mongodb.yml
PBThuong's picture
Deploy LightRAG AI Assistant with Git LFS for binary assets and fonts
979853c
Raw
History Blame Contribute Delete
416 Bytes
mongodb:
image: mongo:8.2.4
# ports:
# - "27017:27017"
volumes:
- mongo_data:/data/db
healthcheck:
test:
- CMD-SHELL
- 'PORT_HEX="$(printf ''%04X'' 27017)"; cat /proc/net/tcp /proc/net/tcp6 2>/dev/null | grep -q ":$${PORT_HEX} "'
interval: 5s
timeout: 3s
retries: 20
start_period: 10s
stop_grace_period: 30s
restart: unless-stopped