forked from CodeGraphContext/CodeGraphContext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.template.yml
More file actions
75 lines (70 loc) · 1.77 KB
/
docker-compose.template.yml
File metadata and controls
75 lines (70 loc) · 1.77 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.8'
services:
# CodeGraphContext with FalkorDB Lite (default)
codegraphcontext:
build:
context: .
dockerfile: Dockerfile
container_name: codegraphcontext
volumes:
# Mount your code directory here
- ./:/workspace
# Persist database and config
- cgc-data:/root/.codegraphcontext
environment:
- PYTHONUNBUFFERED=1
- DATABASE_TYPE=${DATABASE_TYPE:-falkordb}
- FALKORDB_HOST=${FALKORDB_HOST:-}
- FALKORDB_PORT=${FALKORDB_PORT:-6379}
# To use the separate falkordb container (recommended for aarch64):
# - DATABASE_TYPE=falkordb-remote
# - FALKORDB_HOST=falkordb
# - FALKORDB_PORT=6379
stdin_open: true
tty: true
command: bash
networks:
- cgc-network
# Separate FalkorDB container (recommended for aarch64 or larger projects)
falkordb:
image: falkordb/falkordb:latest
container_name: cgc-falkordb
ports:
- "6379:6379"
volumes:
- falkordb-data:/data
networks:
- cgc-network
profiles:
- falkordb
# Optional: Neo4j database (if you prefer Neo4j over FalkorDB)
neo4j:
image: neo4j:5.15.0
container_name: cgc-neo4j
ports:
- "7474:7474" # HTTP
- "7687:7687" # Bolt
environment:
- NEO4J_AUTH=neo4j/codegraph123
- NEO4J_PLUGINS=["apoc"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
- NEO4J_dbms_memory_heap_max__size=2G
volumes:
- neo4j-data:/data
- neo4j-logs:/logs
networks:
- cgc-network
profiles:
- neo4j # Only start when explicitly requested
volumes:
cgc-data:
driver: local
falkordb-data:
driver: local
neo4j-data:
driver: local
neo4j-logs:
driver: local
networks:
cgc-network:
driver: bridge