-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.3 KB
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
version: "3.9"
services:
forgerag:
build: .
ports:
- "8000:8000"
environment:
- FORGERAG_CONFIG=/app/config.yaml
- OPENAI_API_KEY=${OPENAI_API_KEY}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-forgerag}
volumes:
- storage:/app/storage
- ./docker/config.yaml:/app/config.yaml:ro
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: forgerag
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-forgerag}
POSTGRES_DB: forgerag
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U forgerag"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
# Optional: Neo4j for knowledge graph (start with --profile neo4j)
neo4j:
image: neo4j:5
profiles: [neo4j]
environment:
NEO4J_AUTH: neo4j/${NEO4J_PASSWORD:-forgerag}
NEO4J_PLUGINS: '["apoc"]'
volumes:
- neo4jdata:/data
ports:
- "7474:7474"
- "7687:7687"
healthcheck:
test: ["CMD", "neo4j", "status"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
storage:
pgdata:
neo4jdata: