docker-compose.podman.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Podman-compatible compose file for LightRAG
  2. #
  3. # Usage:
  4. # podman-compose -f docker-compose.podman.yml up -d
  5. #
  6. # Key differences from docker-compose.yml:
  7. # - Uses top-level `restart` instead of `deploy.restart_policy`
  8. # (Podman does not support the deploy block for restart policies)
  9. # - No `extra_hosts` with `host-gateway` (Podman fails on this special
  10. # value; Podman auto-provides host.containers.internal for host access)
  11. # - When connecting to host services (e.g. LLM, embedding, rerank),
  12. # use `host.containers.internal` instead of `host.docker.internal`
  13. # in your .env binding host configuration
  14. services:
  15. lightrag:
  16. image: ghcr.io/hkuds/lightrag:latest
  17. build:
  18. context: .
  19. dockerfile: Dockerfile
  20. tags:
  21. - ghcr.io/hkuds/lightrag:latest
  22. ports:
  23. - "${HOST:-0.0.0.0}:${PORT:-9621}:9621"
  24. volumes:
  25. - ./data/rag_storage:/app/data/rag_storage
  26. - ./data/inputs:/app/data/inputs
  27. - ./data/prompts:/app/data/prompts
  28. - ./config.ini:/app/config.ini
  29. - ./.env:/app/.env
  30. restart: on-failure:10
  31. environment:
  32. WORKING_DIR: "/app/data/rag_storage"
  33. INPUT_DIR: "/app/data/inputs"
  34. PROMPT_DIR: "/app/data/prompts"
  35. HOST: "0.0.0.0"
  36. PORT: "9621"