| services: | |
| lightrag: | |
| image: ghcr.io/hkuds/lightrag:latest | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| tags: | |
| - ghcr.io/hkuds/lightrag:latest | |
| ports: | |
| - "${HOST:-0.0.0.0}:${PORT:-9621}:9621" | |
| volumes: | |
| - ./data/rag_storage:/app/data/rag_storage | |
| - ./data/inputs:/app/data/inputs | |
| - ./config.ini:/app/config.ini | |
| - ./.env:/app/.env | |
| deploy: | |
| restart_policy: | |
| condition: on-failure | |
| max_attempts: 10 | |
| extra_hosts: | |
| - "host.docker.internal:host-gateway" | |
| environment: | |
| WORKING_DIR: "/app/data/rag_storage" | |
| INPUT_DIR: "/app/data/inputs" | |
| HOST: "0.0.0.0" | |
| PORT: "9621" | |