-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
75 lines (70 loc) · 1.79 KB
/
docker-compose.prod.yml
File metadata and controls
75 lines (70 loc) · 1.79 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
services:
db:
image: postgres:17-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-mcpmem}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- internal-network
restart: unless-stopped
neo4j:
image: neo4j:5.26-community
ports:
- "7474:7474" # Interface web Neo4j Browser
- "7687:7687" # Bolt protocol
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
networks:
- internal-network
environment:
- NEO4J_AUTH=neo4j/graphiti_password
- NEO4J_PLUGINS=["apoc"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
- NEO4J_dbms_memory_heap_initial__size=512m
- NEO4J_dbms_memory_heap_max__size=2G
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p graphiti_password 'RETURN 1' || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
client:
build:
context: .
dockerfile: docker/prod/client/Dockerfile
args:
VITE_API_BASE_URL: https://api.mcpmem.tanguypauvret.me
VITE_VERSION: prod
networks:
- internal-network
depends_on:
- python
restart: unless-stopped
python:
build:
context: .
dockerfile: docker/prod/python/Dockerfile
environment:
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY}
OPENAI_API_KEY: ${OPENAI_API_KEY}
NEO4J_PASSWORD: ${NEO4J_PASSWORD}
expose:
- "8000"
networks:
- internal-network
networks:
internal-network:
volumes:
neo4j_data:
neo4j_logs:
postgres_data: