From cb4ae4f62a6b23f4295320a2246c2d4d0a607657 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 13 May 2025 21:22:00 +0800 Subject: [PATCH] Update docker files --- Dockerfile | 2 +- docker-compose.yml | 31 +++++-------------------------- 2 files changed, 6 insertions(+), 27 deletions(-) diff --git a/Dockerfile b/Dockerfile index edc6addb..31886e0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ COPY --from=builder /root/.local /root/.local COPY ./lightrag ./lightrag COPY setup.py . -RUN pip install . +RUN pip install ".[api]" # Make sure scripts in .local are usable ENV PATH=/root/.local/bin:$PATH diff --git a/docker-compose.yml b/docker-compose.yml index 549cabf5..d620a4f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,10 @@ services: lightrag: - build: . + build: + context: . + dockerfile: Dockerfile + tags: + - lightrag:latest ports: - "${PORT:-9621}:9621" volumes: @@ -13,28 +17,3 @@ services: restart: unless-stopped extra_hosts: - "host.docker.internal:host-gateway" - - neo4j: - image: neo4j:5.26.4-community - container_name: lightrag-server_neo4j-community - restart: always - ports: - - "7474:7474" - - "7687:7687" - environment: - - NEO4J_AUTH=${NEO4J_USERNAME}/${NEO4J_PASSWORD} - - NEO4J_apoc_export_file_enabled=true - - NEO4J_server_bolt_listen__address=0.0.0.0:7687 - - NEO4J_server_bolt_advertised__address=neo4j:7687 - volumes: - - ./neo4j/plugins:/var/lib/neo4j/plugins - - lightrag_neo4j_import:/var/lib/neo4j/import - - lightrag_neo4j_data:/data - - lightrag_neo4j_backups:/backups - extra_hosts: - - "host.docker.internal:host-gateway" - -volumes: - lightrag_neo4j_import: - lightrag_neo4j_data: - lightrag_neo4j_backups: