-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.external.yml
More file actions
75 lines (68 loc) · 2.11 KB
/
Copy pathdocker-compose.external.yml
File metadata and controls
75 lines (68 loc) · 2.11 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'
# ============================================================================
# Codebase State Manager - Docker Compose (External Neo4j)
#
# Use this file when you prefer Neo4j in a SEPARATE container.
# Better suited for production or when Neo4j is shared.
#
# To use:
# docker-compose -f docker-compose.external.yml up
# ============================================================================
services:
# ==========================================================================
# Neo4j Service (separate)
# ==========================================================================
neo4j:
image: neo4j:5.24
container_name: codebase-neo4j
ports:
- "7474:7474"
- "7687:7687"
environment:
NEO4J_AUTH: neo4j/password
NEO4J_PLUGINS: ["apoc", "graph-data-science"]
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "python3", "-c", "import socket; s=socket.socket(); s.connect(('neo4j',7687)); s.close()"]
interval: 30s
timeout: 10s
retries: 3
# ==========================================================================
# MCP Server App (connects to external Neo4j)
# ==========================================================================
app:
build:
context: .
dockerfile: Dockerfile
container_name: codebase-state-manager
ports:
- "8080:8080"
environment:
# Disable internal Neo4j
NEO4J_ENABLED: "false"
# Connect to external Neo4j
DB_MODE: "neo4j"
NEO4J_URI: "bolt://neo4j:7687"
NEO4J_USER: "neo4j"
NEO4J_PASSWORD: "password"
DOCKER_VOLUME_NAME: "codebase_state_data"
volumes:
- codebase_data:/app/data
depends_on:
neo4j:
condition: service_healthy
restart: unless-stopped
# ============================================================================
# Volumes
# ============================================================================
volumes:
neo4j_data:
neo4j_logs:
codebase_data:
networks:
default:
name: codebase-network
driver: bridge