compose.yaml 609 B

1234567891011121314151617181920212223242526
  1. services:
  2. mineru-sglang:
  3. image: mineru-sglang:latest
  4. container_name: mineru-sglang
  5. restart: always
  6. ports:
  7. - 30000:30000
  8. environment:
  9. MINERU_MODEL_SOURCE: local
  10. entrypoint: mineru-sglang-server
  11. command:
  12. --host 0.0.0.0
  13. --port 30000
  14. ulimits:
  15. memlock: -1
  16. stack: 67108864
  17. ipc: host
  18. healthcheck:
  19. test: ["CMD-SHELL", "curl -f http://localhost:30000/health || exit 1"]
  20. deploy:
  21. resources:
  22. reservations:
  23. devices:
  24. - driver: nvidia
  25. device_ids: ["0"]
  26. capabilities: [gpu]