docker-compose.yml 721 B

123456789101112131415161718192021222324252627
  1. services:
  2. lightrag:
  3. image: ghcr.io/hkuds/lightrag:latest
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. tags:
  8. - ghcr.io/hkuds/lightrag:latest
  9. ports:
  10. - "${HOST:-0.0.0.0}:${PORT:-9621}:9621"
  11. volumes:
  12. - ./data/rag_storage:/app/data/rag_storage
  13. - ./data/inputs:/app/data/inputs
  14. - ./data/prompts:/app/data/prompts
  15. - ./.env:/app/.env
  16. deploy:
  17. restart_policy:
  18. condition: on-failure
  19. max_attempts: 10
  20. extra_hosts:
  21. - "host.docker.internal:host-gateway"
  22. environment:
  23. WORKING_DIR: "/app/data/rag_storage"
  24. INPUT_DIR: "/app/data/inputs"
  25. PROMPT_DIR: "/app/data/prompts"
  26. HOST: "0.0.0.0"
  27. PORT: "9621"