Daniel.y commited on
Commit
2678073
·
unverified ·
2 Parent(s): 2d575bd 563ce44

Merge pull request #1570 from danielaskdd/update-dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. docker-compose.yml +5 -26
Dockerfile CHANGED
@@ -31,7 +31,7 @@ COPY --from=builder /root/.local /root/.local
31
  COPY ./lightrag ./lightrag
32
  COPY setup.py .
33
 
34
- RUN pip install .
35
  # Make sure scripts in .local are usable
36
  ENV PATH=/root/.local/bin:$PATH
37
 
 
31
  COPY ./lightrag ./lightrag
32
  COPY setup.py .
33
 
34
+ RUN pip install ".[api]"
35
  # Make sure scripts in .local are usable
36
  ENV PATH=/root/.local/bin:$PATH
37
 
docker-compose.yml CHANGED
@@ -1,6 +1,10 @@
1
  services:
2
  lightrag:
3
- build: .
 
 
 
 
4
  ports:
5
  - "${PORT:-9621}:9621"
6
  volumes:
@@ -13,28 +17,3 @@ services:
13
  restart: unless-stopped
14
  extra_hosts:
15
  - "host.docker.internal:host-gateway"
16
-
17
- neo4j:
18
- image: neo4j:5.26.4-community
19
- container_name: lightrag-server_neo4j-community
20
- restart: always
21
- ports:
22
- - "7474:7474"
23
- - "7687:7687"
24
- environment:
25
- - NEO4J_AUTH=${NEO4J_USERNAME}/${NEO4J_PASSWORD}
26
- - NEO4J_apoc_export_file_enabled=true
27
- - NEO4J_server_bolt_listen__address=0.0.0.0:7687
28
- - NEO4J_server_bolt_advertised__address=neo4j:7687
29
- volumes:
30
- - ./neo4j/plugins:/var/lib/neo4j/plugins
31
- - lightrag_neo4j_import:/var/lib/neo4j/import
32
- - lightrag_neo4j_data:/data
33
- - lightrag_neo4j_backups:/backups
34
- extra_hosts:
35
- - "host.docker.internal:host-gateway"
36
-
37
- volumes:
38
- lightrag_neo4j_import:
39
- lightrag_neo4j_data:
40
- lightrag_neo4j_backups:
 
1
  services:
2
  lightrag:
3
+ build:
4
+ context: .
5
+ dockerfile: Dockerfile
6
+ tags:
7
+ - lightrag:latest
8
  ports:
9
  - "${PORT:-9621}:9621"
10
  volumes:
 
17
  restart: unless-stopped
18
  extra_hosts:
19
  - "host.docker.internal:host-gateway"