File size: 1,413 Bytes
8b383ad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.8'

services:
  backend:
    build:
      context: .
      dockerfile: backend/Dockerfile.backend
    ports:
      - "8000:8000"
    volumes:
      - ./rag_data:/app/data
    environment:
      - PYTHONUNBUFFERED=1
      - QDRANT_HOST=qdrant-server
      - QDRANT_PORT=6333
      - REDIS_HOST=redis-server
      - REDIS_PORT=6379
      - NEO4J_URI=bolt://neo4j-server:7687
      - NEO4J_USER=neo4j
      - NEO4J_PASSWORD=neo4j123456
    restart: unless-stopped
    networks:
      - app-network
    depends_on:
      - qdrant-server
      - redis-server
      - neo4j-server

  qdrant-server:
    image: qdrant/qdrant:latest
    container_name: qdrant-server
    ports:
      - "6333:6333"
    volumes:
      - ./qdrant_data:/qdrant/storage
    restart: unless-stopped
    networks:
      - app-network

  redis-server:
    image: redis:latest
    container_name: redis-server
    ports:
      - "6379:6379"
    volumes:
      - ./redis_data:/data
    restart: unless-stopped
    networks:
      - app-network

  neo4j-server:
    image: neo4j:latest
    container_name: neo4j-server
    ports:
      - "7474:7474"
      - "7687:7687"
    environment:
      - NEO4J_AUTH=neo4j/neo4j123456
    volumes:
      - ./neo4j_data:/data
    restart: unless-stopped
    networks:
      - app-network

networks:
  app-network:
    driver: bridge